Exception: Mongoid::Errors::EagerLoad
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::EagerLoad
- Defined in:
- lib/mongoid/errors/eager_load.rb
Overview
This error is raised when attempting to eager load a many to many relation.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ EagerLoad
constructor
Create the new eager load error.
Methods inherited from MongoidError
Constructor Details
#initialize(name) ⇒ EagerLoad
Create the new eager load error.
19 20 21 22 |
# File 'lib/mongoid/errors/eager_load.rb', line 19 def initialize(name) @name = name super(translate("eager_load", { :name => name })) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/mongoid/errors/eager_load.rb', line 9 def name @name end |