aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations/validates.rb
diff options
context:
space:
mode:
authorTrey Bean <trey@12spokes.com>2010-08-17 12:51:13 -0600
committerTrey Bean <trey@12spokes.com>2010-08-17 12:51:13 -0600
commitbee414748c975b2452bcb5025fe191bf4d06a4ca (patch)
tree4b9dbcd5b54428e16ddf262507a14a928b3c7987 /activemodel/lib/active_model/validations/validates.rb
parent285690143ea80fe504385a409cdc28f0d9b7ada2 (diff)
downloadrails-bee414748c975b2452bcb5025fe191bf4d06a4ca.tar.gz
rails-bee414748c975b2452bcb5025fe191bf4d06a4ca.tar.bz2
rails-bee414748c975b2452bcb5025fe191bf4d06a4ca.zip
Missing object for comparison in ActiveModel::EachValidator example code.
Diffstat (limited to 'activemodel/lib/active_model/validations/validates.rb')
-rw-r--r--activemodel/lib/active_model/validations/validates.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validations/validates.rb b/activemodel/lib/active_model/validations/validates.rb
index 3242e49269..ba84f53e2a 100644
--- a/activemodel/lib/active_model/validations/validates.rb
+++ b/activemodel/lib/active_model/validations/validates.rb
@@ -48,7 +48,7 @@ module ActiveModel
#
# class TitleValidator < ActiveModel::EachValidator
# def validate_each(record, attribute, value)
- # record.errors[attribute] << "must start with 'the'" unless =~ /^the/i
+ # record.errors[attribute] << "must start with 'the'" unless value =~ /^the/i
# end
# end
#