module AWS::Record::Validations
def validates_acceptance_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 -
:accpet
(mixed
) -- Specify an additional accepted value.
Parameters:
-
options
(Hash
) -- -
attributes
() -- A list of attribute names to validate.
Overloads:
-
validates_acceptance_of(*attributes, options = {}, &block)
Other tags:
- Note: - This validator should not be used with multi-valued attributes
Note: - Most validators default :allow_nil to false, this one defaults to true
def validates_acceptance_of *args validators << AcceptanceValidator.new(self, *args) end