module ActiveModel::Validations
def validate!(context = nil)
Validations with no :on option will run no matter the context. Validations with
no errors are found, raises +ValidationError+ otherwise.
Runs all the validations within the specified context. Returns +true+ if
def validate!(context = nil) valid?(context) || raise_validation_error end