Module: Granite::Form::Model::Validations

Extended by:
ActiveSupport::Concern
Includes:
ActiveModel::Validations
Defined in:
lib/granite/form/model/validations.rb,
lib/granite/form/model/validations/nested.rb,
lib/granite/form/model/validations/associated.rb

Defined Under Namespace

Modules: HelperMethods Classes: AssociatedValidator, NestedValidator

Instance Method Summary collapse

Instance Method Details

#validate!(context = nil) ⇒ Object



24
25
26
# File 'lib/granite/form/model/validations.rb', line 24

def validate!(context = nil)
  valid?(context) || raise_validation_error
end