Module: ActiveData::Model::Validations

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

Defined Under Namespace

Modules: HelperMethods Classes: AssociatedValidator, NestedValidator

Instance Method Summary collapse

Instance Method Details

#validate!(context = nil) ⇒ Object



14
15
16
# File 'lib/active_data/model/validations.rb', line 14

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