]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/note.rb
User errors.add(:base) instead of the removed errors.add_to_base()
[rails.git] / app / models / note.rb
index 76c5e53081158809f55f381e3457719f2cf9e38a..9531e2899758b65204b3e9c459d1cce909d1d651 100644 (file)
@@ -18,7 +18,7 @@ class Note < ActiveRecord::Base
 
   # Sanity check the latitude and longitude and add an error if it's broken
   def validate_position
-    errors.add_to_base("Note is not in the world") unless in_world?
+    errors.add(:base, "Note is not in the world") unless in_world?
   end
 
   # Close a note