]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_node.rb
Optimise finding of relations, partially reversing change #8443 but in
[rails.git] / app / models / old_node.rb
index b6391a3d1b06c6921f835b2c0e5e57b5dc172592..76eab8427b2c570cce79846887706eb6c10923b6 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
@@ -56,4 +58,14 @@ class OldNode < GeoRecord
     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