diff options
author | Mikel Lindsaar <raasdnil@gmail.com> | 2010-09-12 14:19:13 +1000 |
---|---|---|
committer | Mikel Lindsaar <raasdnil@gmail.com> | 2010-09-12 14:19:38 +1000 |
commit | bca9b84a4aed4fc83d35de73847c3ca871381f70 (patch) | |
tree | c77d580e749d3a5f93e792a99bd5ad548cce80d5 /activemodel/lib | |
parent | 8c6de675e49d78244c5936f6e5c31e46f7c21377 (diff) | |
download | rails-bca9b84a4aed4fc83d35de73847c3ca871381f70.tar.gz rails-bca9b84a4aed4fc83d35de73847c3ca871381f70.tar.bz2 rails-bca9b84a4aed4fc83d35de73847c3ca871381f70.zip |
Fixing documentation to reflect deprecated add_to_base
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/validations.rb | 4 |
1 files 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 @@ module ActiveModel # 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 @@ module ActiveModel # 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 # |