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.

Show source
Register or log in to add new notes.