Exception: Mongoid::Errors::InvalidConfigOption
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidConfigOption
- Defined in:
- lib/mongoid/errors/invalid_config_option.rb
Overview
This error is raised when a bad configuration option is attempted to be set.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(name) ⇒ InvalidConfigOption
constructor
Create the new error.
Methods inherited from MongoidError
Constructor Details
#initialize(name) ⇒ InvalidConfigOption
Create the new error.
17 18 19 20 21 22 23 24 |
# File 'lib/mongoid/errors/invalid_config_option.rb', line 17 def initialize(name) super( ( "invalid_config_option", { name: name, options: Config.settings.keys.map(&:inspect).join(", ") } ) ) end |