class Mongoid::Errors::InvalidValue

This error is raised when trying to set an attribute with an invalid value. For example when try to set an Array value to a Hash attribute.