Exception: Mongoid::Errors::InvalidScope
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidScope
- Defined in:
- 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 Method Summary collapse
-
#initialize(klass, value) ⇒ InvalidScope
constructor
Create the error.
Methods inherited from MongoidError
Constructor Details
#initialize(klass, value) ⇒ InvalidScope
Create the error.
17 18 19 20 21 |
# File 'lib/mongoid/errors/invalid_scope.rb', line 17 def initialize(klass, value) super( ("invalid_scope", { klass: klass, value: value }) ) end |