]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_node.rb
Don't user flash[:notice] when we're not redirecting as it will
[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