Class: DataValidator::ConfirmationValidator
- Inherits:
-
BaseValidator
- Object
- BaseValidator
- DataValidator::ConfirmationValidator
- Defined in:
- lib/validations/confirmation.rb
Instance Attribute Summary
Attributes inherited from BaseValidator
#errors, #name, #options, #value
Instance Method Summary collapse
Methods inherited from BaseValidator
#add_error, #check_validity!, #initialize
Constructor Details
This class inherits a constructor from DataValidator::BaseValidator
Instance Method Details
#validate ⇒ Object
5 6 7 8 9 |
# File 'lib/validations/confirmation.rb', line 5 def validate if value != [:criterion] add_error :confirmation end end |