From: Tom Hughes Date: Sun, 22 Jun 2008 14:46:46 +0000 (+0000) Subject: Merge 8377:8381 from trunk. X-Git-Tag: live~7743^2~4 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/d69a518b9e69107503b332728dfa583594293ea1?hp=-c Merge 8377:8381 from trunk. --- d69a518b9e69107503b332728dfa583594293ea1 diff --combined app/models/old_node.rb index b6391a3d1,891b89731..7bafca053 --- a/app/models/old_node.rb +++ b/app/models/old_node.rb @@@ -1,4 -1,6 +1,6 @@@ - class OldNode < GeoRecord + class OldNode < ActiveRecord::Base + include GeoRecord + set_table_name 'nodes' validates_presence_of :user_id, :timestamp @@@ -48,12 -50,4 +50,12 @@@ el1['timestamp'] = self.timestamp.xmlschema return el1 end + + def tags_as_hash + hash = {} + Tags.split(self.tags) do |k,v| + hash[k] = v + end + hash + end end