Sha256: fad8d713624db04c43c41c45957a6b4b262cab90631f650200c77139420f3994
Contents?: true
Size: 624 Bytes
Versions: 188
Compression:
Stored size: 624 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc module Errors #:nodoc # 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") class InvalidType < MongoidError def initialize(klass, value) super( translate( "invalid_type", { :klass => klass.name, :other => value.class.name, :value => value.inspect } ) ) end end end end
Version data entries
188 entries across 96 versions & 4 rubygems