]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/node.rb
Avoid use of deprecated methods on error objects
[rails.git] / app / models / node.rb
index 3de6e154c15841d8c2b94c75a9a4f9206a7bcbcc..70c6fb880ed9c46c2047150780d816342be022c8 100644 (file)
@@ -35,7 +35,7 @@ class Node < ActiveRecord::Base
 
   # Sanity check the latitude and longitude and add an error if it's broken
   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
 
   #