Exception: Mongoid::Errors::NoDefaultSession
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::NoDefaultSession
- Defined in:
- lib/mongoid/errors/no_default_session.rb
Overview
This error is raised when a default session is not defined.
Constant Summary
Constants inherited from MongoidError
Instance Method Summary collapse
-
#initialize(keys) ⇒ NoDefaultSession
constructor
Create the new error with the defined session names.
Methods inherited from MongoidError
Constructor Details
#initialize(keys) ⇒ NoDefaultSession
Create the new error with the defined session names.
16 17 18 19 20 |
# File 'lib/mongoid/errors/no_default_session.rb', line 16 def initialize(keys) super( ("no_default_session", { keys: keys.join(", ") }) ) end |