]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_node.rb
Tidy up a bit after shaun's merge...
[rails.git] / app / models / old_node.rb
index a3650173a6e5dfdaf3146eefe41b2a3adb0514e3..42f55f2d0fbd6db5ef66390e3bd08a192482ceb3 100644 (file)
@@ -1,4 +1,6 @@
-class OldNode < GeoRecord
+class OldNode < ActiveRecord::Base
+  include GeoRecord
+
   set_table_name 'nodes'
   
   validates_presence_of :user_id, :timestamp
@@ -89,5 +91,21 @@ class OldNode < GeoRecord
   def tags=(t)
     @tags = t 
   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