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.
Public Class Methods
new(field_class, value_class)
click to toggle source
Calls superclass method
# File lib/mongoid/errors/invalid_value.rb, line 11 def initialize(field_class, value_class) super( compose_message("invalid_value", { value_class: value_class, field_class: field_class }) ) end