From bca9b84a4aed4fc83d35de73847c3ca871381f70 Mon Sep 17 00:00:00 2001 From: Mikel Lindsaar Date: Sun, 12 Sep 2010 14:19:13 +1000 Subject: [PATCH] Fixing documentation to reflect deprecated add_to_base --- activemodel/lib/active_model/validations.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activemodel/lib/active_model/validations.rb b/activemodel/lib/active_model/validations.rb index cd37925292..1b5fb55b79 100644 --- a/activemodel/lib/active_model/validations.rb +++ b/activemodel/lib/active_model/validations.rb @@ -100,7 +100,7 @@ def validates_each(*attr_names, &block) # validate :must_be_friends # # def must_be_friends - # errors.add_to_base("Must be friends to leave a comment") unless commenter.friend_of?(commentee) + # errors.add(:base, "Must be friends to leave a comment") unless commenter.friend_of?(commentee) # end # end # @@ -114,7 +114,7 @@ def validates_each(*attr_names, &block) # end # # def must_be_friends - # errors.add_to_base("Must be friends to leave a comment") unless commenter.friend_of?(commentee) + # errors.add(:base, ("Must be friends to leave a comment") unless commenter.friend_of?(commentee) # end # end # -- GitLab