X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/2e1d9f3348c0daa482397049d009e26bbedc00bd..67017dbca48198e413bd9bb09d70c58f4d837a6a:/app/models/note.rb?ds=inline diff --git a/app/models/note.rb b/app/models/note.rb index 76c5e5308..9531e2899 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -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