diff options
author | Xavier Noria <fxn@hashref.com> | 2014-01-26 20:47:56 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2014-01-26 20:50:18 +0100 |
commit | 0df1f914104073b70f8d8976d0d5adc3b2a1e44e (patch) | |
tree | 1f76aaaeca5625b92cabb0f0788125115aaf5ec6 /activemodel/lib/active_model/validations/validates.rb | |
parent | 61554efd02949c1de6e8a7be1c0e58a92a45bcb2 (diff) | |
download | rails-0df1f914104073b70f8d8976d0d5adc3b2a1e44e.tar.gz rails-0df1f914104073b70f8d8976d0d5adc3b2a1e44e.tar.bz2 rails-0df1f914104073b70f8d8976d0d5adc3b2a1e44e.zip |
revises references to :allow_(nil|blank) in some docs [ci skip] [Steven Yang & Xavier Noria]
Closes #11247.
Diffstat (limited to 'activemodel/lib/active_model/validations/validates.rb')
-rw-r--r-- | activemodel/lib/active_model/validations/validates.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validations/validates.rb b/activemodel/lib/active_model/validations/validates.rb index bf588b7bd0..ae8d377fdf 100644 --- a/activemodel/lib/active_model/validations/validates.rb +++ b/activemodel/lib/active_model/validations/validates.rb @@ -83,7 +83,9 @@ module ActiveModel # or <tt>unless: Proc.new { |user| user.signup_step <= 2 }</tt>). The # method, proc or string should return or evaluate to a +true+ or # +false+ value. - # * <tt>:strict</tt> - if the <tt>:strict</tt> option is set to true + # * <tt>:allow_nil</tt> - Skip validation if the attribute is +nil+. + # * <tt>:allow_blank</tt> - Skip validation if the attribute is blank. + # * <tt>:strict</tt> - If the <tt>:strict</tt> option is set to true # will raise ActiveModel::StrictValidationFailed instead of adding the error. # <tt>:strict</tt> option can also be set to any other exception. # |