]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_node.rb
List all objects that are blocking a delete, in a well defined order
[rails.git] / app / models / old_node.rb
index 5e3638347a642a55ec8e33ca180012532709233b..397e836184f1f7d36c906852dcc732a9c4fbec5e 100644 (file)
@@ -17,7 +17,7 @@ class OldNode < ActiveRecord::Base
   belongs_to :changeset
  
   def validate_position
-    errors.add_to_base("Node is not in the world") unless in_world?
+    errors.add(:base, "Node is not in the world") unless in_world?
   end
 
   def self.from_node(node)