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
21 self.tags.each do |k,v|
31 seg = OldWaySegment.new
39 old_way = OldWay.from_way(self)
44 @segs = Array.new unless @segs
49 @tags = Hash.new unless @tags