aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorfastred <fastred@fastred.org>2010-10-01 18:32:46 +0200
committerfastred <fastred@fastred.org>2010-10-01 18:32:46 +0200
commit4ea9a8d9ad71265f9dfb30503ed4b0c9e21fb768 (patch)
tree248185efc4f750a654c3a341b23e9944c8d853a7 /activemodel
parentee31847a5a650c93a49ebb6e4d1dc93bd2c1923f (diff)
downloadrails-4ea9a8d9ad71265f9dfb30503ed4b0c9e21fb768.tar.gz
rails-4ea9a8d9ad71265f9dfb30503ed4b0c9e21fb768.tar.bz2
rails-4ea9a8d9ad71265f9dfb30503ed4b0c9e21fb768.zip
Fix syntax error in ActiveModel::Validations .validate example
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/validations.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validations.rb b/activemodel/lib/active_model/validations.rb
index 1b5fb55b79..b044caa8d3 100644
--- a/activemodel/lib/active_model/validations.rb
+++ b/activemodel/lib/active_model/validations.rb
@@ -114,7 +114,7 @@ module ActiveModel
# end
#
# def must_be_friends
- # errors.add(: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
#