Permalink
Browse files

Fixing documentation to reflect deprecated add_to_base

  • Loading branch information...
1 parent 8c6de67 commit bca9b84a4aed4fc83d35de73847c3ca871381f70 @mikel mikel committed Sep 12, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 activemodel/lib/active_model/validations.rb
View
4 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 bca9b84

Please sign in to comment.