Exception: Mongoid::Errors::InvalidScope
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidScope
- Defined in:
- build/mongoid-7.3/lib/mongoid/errors/invalid_scope.rb
Overview
This error is raised when defining a scope of an invalid type.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(klass, value) ⇒ InvalidScope
constructor
Create the error.
Methods inherited from MongoidError
Constructor Details
#initialize(klass, value) ⇒ InvalidScope
Create the error.
19 20 21 22 23 |
# File 'build/mongoid-7.3/lib/mongoid/errors/invalid_scope.rb', line 19 def initialize(klass, value) super( ("invalid_scope", { klass: klass, value: value }) ) end |