method
validates!
v3.2.13 -
Show latest stable
- Class:
ActiveModel::Validations::ClassMethods
validates!(*attributes)public
This method is used to define validation that cannot be corrected by end user and is considered exceptional. So each validator defined with bang or :strict option set to true will always raise ActiveModel::StrictValidationFailed instead of adding error when validation fails. See validates for more information about validation itself.