diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-04-03 18:47:49 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-04-03 18:47:49 +0000 |
commit | 109c56df3afdae0235757edad885b829b4b8a716 (patch) | |
tree | d4a144905859de939ae740b0485db8ff050c0d4e /activerecord/lib/active_record | |
parent | db7fadd7300e07bac343ff7b9d2056fe8b37475f (diff) | |
download | rails-109c56df3afdae0235757edad885b829b4b8a716.tar.gz rails-109c56df3afdae0235757edad885b829b4b8a716.tar.bz2 rails-109c56df3afdae0235757edad885b829b4b8a716.zip |
Doc fix #3960 [jonrailsdev@shumi.org]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4142 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record')
-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 # |