diff options
author | Oscar Del Ben <info@oscardelben.com> | 2012-04-26 09:35:26 +0200 |
---|---|---|
committer | Oscar Del Ben <info@oscardelben.com> | 2012-04-26 09:35:26 +0200 |
commit | b2ccae466e12659df97969661dae389ac0eb6e2c (patch) | |
tree | f9d5a694e6c143e4bbf206c0ade471b6a90f4ffd | |
parent | a2fac64fb91c426f64b687270117e956fb77cff6 (diff) | |
download | rails-b2ccae466e12659df97969661dae389ac0eb6e2c.tar.gz rails-b2ccae466e12659df97969661dae389ac0eb6e2c.tar.bz2 rails-b2ccae466e12659df97969661dae389ac0eb6e2c.zip |
Enhance validations documentation
-rw-r--r-- | activemodel/lib/active_model/validations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validations.rb b/activemodel/lib/active_model/validations.rb index 0e15155b85..ebb0dbb1ca 100644 --- a/activemodel/lib/active_model/validations.rb +++ b/activemodel/lib/active_model/validations.rb @@ -65,7 +65,7 @@ module ActiveModel # # attr_accessor :first_name, :last_name # - # validates_each :first_name, :last_name do |record, attr, value| + # validates_each :first_name, :last_name, :allow_blank => true do |record, attr, value| # record.errors.add attr, 'starts with z.' if value.to_s[0] == ?z # end # end |