1 class OldWay < ActiveRecord::Base
8 old_way.user_id = way.user_id
9 old_way.timestamp = way.timestamp
11 old_way.segs = way.segs
12 old_way.tags = way.tags
16 def save_with_dependencies
20 self.tags.each do |k,v|
25 tag.version = self.version
31 seg = OldWaySegment.new
34 seg.version = self.version
40 @segs = Array.new unless @segs
45 @tags = Hash.new unless @tags