Exception: Mongoid::Errors::InverseNotFound
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InverseNotFound
- Defined in:
- lib/mongoid/errors/inverse_not_found.rb
Overview
Raised when no inverse_of definition can be found when needed.
Constant Summary
Constants inherited from MongoidError
Instance Method Summary collapse
-
#initialize(base, name, klass, inverse) ⇒ InverseNotFound
constructor
Create then new error.
Methods inherited from MongoidError
Constructor Details
#initialize(base, name, klass, inverse) ⇒ InverseNotFound
Create then new error.
19 20 21 22 23 24 25 26 |
# File 'lib/mongoid/errors/inverse_not_found.rb', line 19 def initialize(base, name, klass, inverse) super( ( "inverse_not_found", { base: base, name: name, klass: klass, inverse: inverse } ) ) end |