Permalink
Browse files

Doc fix #3960 [jonrailsdev@shumi.org]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4142 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent db7fadd commit 109c56df3afdae0235757edad885b829b4b8a716 @dhh dhh committed Apr 3, 2006
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/validations.rb
@@ -277,8 +277,8 @@ def evaluate_condition(condition, record)
# 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
#

0 comments on commit 109c56d

Please sign in to comment.