Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing documentation to reflect deprecated add_to_base

  • Loading branch information...
commit bca9b84a4aed4fc83d35de73847c3ca871381f70 1 parent 8c6de67
@mikel mikel authored
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
#
Please sign in to comment.
Something went wrong with that request. Please try again.