Exception: Mongoid::Errors::InvalidPersistenceOption
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidPersistenceOption
- Defined in:
- lib/mongoid/errors/invalid_persistence_option.rb
Overview
Raised when invalid options are used to create a persistence context.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(invalid, valid) ⇒ InvalidPersistenceOption
constructor
Instantiate the persistence context option error.
Methods inherited from MongoidError
Constructor Details
#initialize(invalid, valid) ⇒ InvalidPersistenceOption
Instantiate the persistence context option error.
17 18 19 20 21 22 23 24 |
# File 'lib/mongoid/errors/invalid_persistence_option.rb', line 17 def initialize(invalid, valid) super( ( "invalid_persistence_option", { invalid: invalid, valid: valid } ) ) end |