]> git.openstreetmap.org Git - rails.git/blob - app/models/old_way.rb
3f978d3d407ad88ca44bcaf7d9586c61ddbd8db9
[rails.git] / app / models / old_way.rb
1 class OldWay < ActiveRecord::Base
2   set_table_name 'ways'
3
4   belongs_to :user
5
6   def self.from_way(way)
7     old_way = OldWay.new
8     old_way.user_id = way.user_id
9     old_way.timestamp = way.timestamp
10     old_way.id = way.id
11     return old_way
12   end
13
14 end