Exception: Mongoid::Errors::InvalidIncludes
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidIncludes
- Defined in:
- build/mongoid-7.3/lib/mongoid/errors/invalid_includes.rb
Overview
This error is raised when an invalid value is passed to an eager loading query.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(klass, args) ⇒ InvalidIncludes
constructor
Initialize the error.
Methods inherited from MongoidError
Constructor Details
#initialize(klass, args) ⇒ InvalidIncludes
Initialize the error.
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'build/mongoid-7.3/lib/mongoid/errors/invalid_includes.rb', line 20 def initialize(klass, args) super( ( "invalid_includes", { klass: klass.name, args: args.map(&:inspect).join(", "), relations: klass.relations.keys.map(&:inspect).join(", ") } ) ) end |