Exception: MongoidNestedFields::Errors::UnexpectedType
- Inherits:
-
TypeError
- Object
- TypeError
- MongoidNestedFields::Errors::UnexpectedType
- Defined in:
- lib/mongoid_nested_fields/errors/unexpected_type.rb
Instance Method Summary collapse
-
#initialize(type, field) ⇒ UnexpectedType
constructor
A new instance of UnexpectedType.
Constructor Details
#initialize(type, field) ⇒ UnexpectedType
Returns a new instance of UnexpectedType.
6 7 8 |
# File 'lib/mongoid_nested_fields/errors/unexpected_type.rb', line 6 def initialize(type, field) super("Unexpected type #{type} in field #{field}") end |