Class: StoreModel::CombineErrorsStrategies::MarkInvalidErrorStrategy
- Inherits:
-
Object
- Object
- StoreModel::CombineErrorsStrategies::MarkInvalidErrorStrategy
- Defined in:
- lib/store_model/combine_errors_strategies/mark_invalid_error_strategy.rb
Overview
MarkInvalidErrorStrategy
marks attribute invalid in the parent record.
Instance Method Summary collapse
-
#call(attribute, base_errors, _store_model_errors) ⇒ Object
Invalidates
attribute
in the parent record.
Instance Method Details
#call(attribute, base_errors, _store_model_errors) ⇒ Object
Invalidates attribute
in the parent record.
StoreModel::Model attribute
13 14 15 |
# File 'lib/store_model/combine_errors_strategies/mark_invalid_error_strategy.rb', line 13 def call(attribute, base_errors, _store_model_errors) base_errors.add(attribute, :invalid) end |