Exception: Mongoid::Errors::InvalidOptions
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidOptions
- Defined in:
- build/mongoid-7.3/lib/mongoid/errors/invalid_options.rb
Overview
Raised when invalid options are passed to an association macro.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(name, invalid, valid) ⇒ InvalidOptions
constructor
Instantiate the options error.
Methods inherited from MongoidError
Constructor Details
#initialize(name, invalid, valid) ⇒ InvalidOptions
Instantiate the options error.
20 21 22 23 24 25 26 27 |
# File 'build/mongoid-7.3/lib/mongoid/errors/invalid_options.rb', line 20 def initialize(name, invalid, valid) super( ( "invalid_options", { name: name, invalid: invalid, valid: valid.join(', ') } ) ) end |