From: Tom Hughes Date: Fri, 9 Mar 2012 00:32:57 +0000 (+0000) Subject: User errors.add(:base) instead of the removed errors.add_to_base() X-Git-Tag: live~5111^2~116 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/67017dbca48198e413bd9bb09d70c58f4d837a6a User errors.add(:base) instead of the removed errors.add_to_base() --- 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