Sha256: 5b007dfdf9f6f6f7544f1af1088b51531d26de97a156919ee34ec523f6791c55
Contents?: true
Size: 802 Bytes
Versions: 27
Compression:
Stored size: 802 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 module Mongoid module Errors # This error is raised when metadata could not be found when defining # nested attributes, or the name was incorrect. class NestedAttributesMetadataNotFound < MongoidError # Create the new metadata error. # # @example Create the new metadata error. # NestedAttributesMetadataNotFound.new(klass, name) # # @param [ Class ] klass The class of the document. # @param [ Symbol, String ] name The name of the association # # @since 3.0.0 def initialize(klass, name) super( compose_message( "nested_attributes_metadata_not_found", { klass: klass, name: name } ) ) end end end end
Version data entries
27 entries across 27 versions & 2 rubygems