class Mongoid::Errors::NestedAttributesMetadataNotFound
This error is raised when metadata could not be found when defining nested attributes, or the name was incorrect.
Public Class Methods
new(klass, name)
click to toggle source
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
Calls superclass method
# File lib/mongoid/errors/nested_attributes_metadata_not_found.rb, line 20 def initialize(klass, name) super( compose_message( "nested_attributes_metadata_not_found", { klass: klass, name: name } ) ) end