Exception: Mongoid::Errors::InvalidConfigOption
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidConfigOption
- Defined in:
- build/mongoid-7.3/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.
19 20 21 22 23 24 25 26 |
# File 'build/mongoid-7.3/lib/mongoid/errors/invalid_config_option.rb', line 19 def initialize(name) super( ( "invalid_config_option", { name: name, options: Config.settings.keys.map(&:inspect).join(", ") } ) ) end |