Skip to content

Commit

Permalink
Fixing documentation to reflect deprecated add_to_base
Browse files Browse the repository at this point in the history
  • Loading branch information
mikel committed Sep 12, 2010
1 parent 8c6de67 commit bca9b84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activemodel/lib/active_model/validations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand All @@ -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
#
Expand Down

0 comments on commit bca9b84

Please sign in to comment.