aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorMikel Lindsaar <raasdnil@gmail.com>2010-09-12 14:19:13 +1000
committerMikel Lindsaar <raasdnil@gmail.com>2010-09-12 14:19:38 +1000
commitbca9b84a4aed4fc83d35de73847c3ca871381f70 (patch)
treec77d580e749d3a5f93e792a99bd5ad548cce80d5 /activemodel
parent8c6de675e49d78244c5936f6e5c31e46f7c21377 (diff)
downloadrails-bca9b84a4aed4fc83d35de73847c3ca871381f70.tar.gz
rails-bca9b84a4aed4fc83d35de73847c3ca871381f70.tar.bz2
rails-bca9b84a4aed4fc83d35de73847c3ca871381f70.zip
Fixing documentation to reflect deprecated add_to_base
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/validations.rb4
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
#