Exception: Mongoid::Errors::InvalidFieldOption
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidFieldOption
- Defined in:
- lib/mongoid/errors/invalid_field_option.rb
Overview
This error is raised when trying to create a field that has an invalid option.
Constant Summary
Constants inherited from MongoidError
Instance Method Summary collapse
-
#initialize(klass, name, option, valid) ⇒ InvalidFieldOption
constructor
Create the new error.
Methods inherited from MongoidError
Constructor Details
#initialize(klass, name, option, valid) ⇒ InvalidFieldOption
Create the new error.
20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/mongoid/errors/invalid_field_option.rb', line 20 def initialize(klass, name, option, valid) super( ( "invalid_field_option", { name: name, klass: klass, option: option, valid: valid.join(", ") } ) ) end |