Exception: Mongoid::Errors::InvalidOptions
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidOptions
- Defined in:
- lib/mongoid/errors/invalid_options.rb
Overview
Raised when invalid options are passed to a relation macro.
Constant Summary
Constants inherited from MongoidError
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.
18 19 20 21 22 23 24 25 |
# File 'lib/mongoid/errors/invalid_options.rb', line 18 def initialize(name, invalid, valid) super( ( "invalid_options", { name: name, invalid: invalid, valid: valid.join(', ') } ) ) end |