Exception: MongoidNestedFields::Errors::UnexpectedType

Inherits:
TypeError
  • Object
show all
Defined in:
lib/mongoid_nested_fields/errors/unexpected_type.rb

Instance Method Summary collapse

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