]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_node.rb
Add SOTM advert.
[rails.git] / app / models / old_node.rb
index 891b89731ec2062071b06f5605e7442ec971b3f2..76eab8427b2c570cce79846887706eb6c10923b6 100644 (file)
@@ -50,4 +50,22 @@ 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
+
+  # Pretend we're not in any ways
+  def ways
+    return []
+  end
+
+  # Pretend we're not in any relations
+  def containing_relation_members
+    return []
+  end
 end