method
validates!
v3.2.1 -
Show latest stable
- Class:
ActiveModel::Validations::ClassMethods
validates!(*attributes)public
This method is used to define validation that can not 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::InternalValidationFailed instead of adding error when validation fails See validates for more information about validation itself.