Class | Mongoid::Errors::InvalidType |
In: |
lib/mongoid/errors/invalid_type.rb
|
Parent: | MongoidError |
Raised when trying to get or set a value for a defined field, where the type of the object does not match the defined field type.
@example Create the error.
InvalidType.new(Array, "Not an Array")