From 67017dbca48198e413bd9bb09d70c58f4d837a6a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 9 Mar 2012 00:32:57 +0000 Subject: [PATCH] User errors.add(:base) instead of the removed errors.add_to_base() --- app/models/note.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5