Module: DataMapper::Validations::ValidatesAcceptance
- Extended by:
- Deprecate
- Included in:
- ClassMethods
- Defined in:
- lib/dm-validations/validators/acceptance_validator.rb
Overview
class AcceptanceValidator
Instance Method Summary collapse
-
#validates_acceptance_of(*fields) ⇒ Object
Validates that the attributes’s value is in the set of accepted values.
Instance Method Details
#validates_acceptance_of(*fields) ⇒ Object
Validates that the attributes’s value is in the set of accepted values.
71 72 73 |
# File 'lib/dm-validations/validators/acceptance_validator.rb', line 71 def validates_acceptance_of(*fields) validators.add(AcceptanceValidator, *fields) end |