aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations.rb
diff options
context:
space:
mode:
authorOscar Del Ben <info@oscardelben.com>2012-04-26 09:35:26 +0200
committerOscar Del Ben <info@oscardelben.com>2012-04-26 09:35:26 +0200
commitb2ccae466e12659df97969661dae389ac0eb6e2c (patch)
treef9d5a694e6c143e4bbf206c0ade471b6a90f4ffd /activemodel/lib/active_model/validations.rb
parenta2fac64fb91c426f64b687270117e956fb77cff6 (diff)
downloadrails-b2ccae466e12659df97969661dae389ac0eb6e2c.tar.gz
rails-b2ccae466e12659df97969661dae389ac0eb6e2c.tar.bz2
rails-b2ccae466e12659df97969661dae389ac0eb6e2c.zip
Enhance validations documentation
Diffstat (limited to 'activemodel/lib/active_model/validations.rb')
-rw-r--r--activemodel/lib/active_model/validations.rb2
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