module AWS::Record::Validations
def validates_exclusion_of *args
(**options)
-
:unless
(Symbol, String, Proc
) -- Specifies a method or -
:if
(Symbol, String, Proc
) -- Specifies a method or proc -
:on
(Symbol
) -- When this validation is run. -
:allow_blank
(Boolean
) -- Skip validation if the -
:allow_nil
(Boolean
) -- Skip validation if the -
:message
(String
) -- A custom error message. The default -
:in
(required, Enumerable
) -- An enumerable object to
Parameters:
-
options
(Hash
) -- -
attributes
() -- A list of attribute names to validate.
Overloads:
-
validates_exclusion_of(*attributes, options = {}, &block)
def validates_exclusion_of *args validators << ExclusionValidator.new(self, *args) end