aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations/exclusion.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2014-01-26 20:47:56 +0100
committerXavier Noria <fxn@hashref.com>2014-01-26 20:50:18 +0100
commit0df1f914104073b70f8d8976d0d5adc3b2a1e44e (patch)
tree1f76aaaeca5625b92cabb0f0788125115aaf5ec6 /activemodel/lib/active_model/validations/exclusion.rb
parent61554efd02949c1de6e8a7be1c0e58a92a45bcb2 (diff)
downloadrails-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/exclusion.rb')
-rw-r--r--activemodel/lib/active_model/validations/exclusion.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/activemodel/lib/active_model/validations/exclusion.rb b/activemodel/lib/active_model/validations/exclusion.rb
index 48bf5cd802..f342d27275 100644
--- a/activemodel/lib/active_model/validations/exclusion.rb
+++ b/activemodel/lib/active_model/validations/exclusion.rb
@@ -34,13 +34,9 @@ module ActiveModel
# <tt>Range#cover?</tt>, otherwise with <tt>include?</tt>.
# * <tt>:message</tt> - Specifies a custom error message (default is: "is
# reserved").
- # * <tt>:allow_nil</tt> - If set to true, skips this validation if the
- # attribute is +nil+ (default is +false+).
- # * <tt>:allow_blank</tt> - If set to true, skips this validation if the
- # attribute is blank(default is +false+).
#
# There is also a list of default options supported by every validator:
- # +:if+, +:unless+, +:on+ and +:strict+.
+ # +:if+, +:unless+, +:on+, +:allow_nil+, +:allow_blank+, and +:strict+.
# See <tt>ActiveModel::Validation#validates</tt> for more information
def validates_exclusion_of(*attr_names)
validates_with ExclusionValidator, _merge_attributes(attr_names)