Exception: Mongoid::Errors::InvalidDependentStrategy
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidDependentStrategy
- Defined in:
- lib/mongoid/errors/invalid_dependent_strategy.rb
Overview
This error is raised when an invalid strategy is defined for an association dependency.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(association, invalid_strategy, valid_strategies) ⇒ InvalidDependentStrategy
constructor
Create the new error.
Methods inherited from MongoidError
Constructor Details
#initialize(association, invalid_strategy, valid_strategies) ⇒ InvalidDependentStrategy
Create the new error.
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/mongoid/errors/invalid_dependent_strategy.rb', line 19 def initialize(association, invalid_strategy, valid_strategies) super( ( "invalid_dependent_strategy", { association: association, invalid_strategy: invalid_strategy, valid_strategies: valid_strategies } ) ) end |