Sha256: d1dd11c17f09c9e2eabba9b1ee768152efdd087416d421b7466e265e6970f7aa
Contents?: true
Size: 459 Bytes
Versions: 8
Compression:
Stored size: 459 Bytes
Contents
# frozen_string_literal: true module Mongoid module Errors # 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. # class InvalidValue < MongoidError def initialize(field_class, value_class) super( compose_message("invalid_value", { value_class: value_class, field_class: field_class }) ) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems