]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_node.rb
Merge 8377:8381 from trunk.
[rails.git] / app / models / old_node.rb
index 891b89731ec2062071b06f5605e7442ec971b3f2..7bafca0531a631767bc673617c005c770d345205 100644 (file)
@@ -50,4 +50,12 @@ class OldNode < ActiveRecord::Base
     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