diff options
Diffstat (limited to 'activerecord')
-rwxr-xr-x | activerecord/lib/active_record/validations.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb index 024e799ea3..fec2f59a1b 100755 --- a/activerecord/lib/active_record/validations.rb +++ b/activerecord/lib/active_record/validations.rb @@ -277,8 +277,8 @@ module ActiveRecord # Validates each attribute against a block. # # class Person < ActiveRecord::Base - # validates_each :first_name, :last_name do |record, attr| - # record.errors.add attr, 'starts with z.' if attr[0] == ?z + # validates_each :first_name, :last_name do |record, attr, value| + # record.errors.add attr, 'starts with z.' if value[0] == ?z # end # end # |