Permalink
Browse files

Fixing documentation to reflect deprecated add_to_base

  • Loading branch information...
1 parent 91693dd commit 75b985e4e8b3319a4640a8d566d2f3eedce7918e @mikel mikel committed Sep 12, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 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
#

0 comments on commit 75b985e

Please sign in to comment.