From bee414748c975b2452bcb5025fe191bf4d06a4ca Mon Sep 17 00:00:00 2001 From: Trey Bean Date: Tue, 17 Aug 2010 12:51:13 -0600 Subject: Missing object for comparison in ActiveModel::EachValidator example code. --- activemodel/lib/active_model/validations/validates.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activemodel/lib/active_model/validations/validates.rb') 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 # -- cgit v1.2.3