Exception: Mongoid::Errors::NestedAttributesMetadataNotFound
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::NestedAttributesMetadataNotFound
- Defined in:
- build/mongoid-6.1/lib/mongoid/errors/nested_attributes_metadata_not_found.rb
Overview
This error is raised when metadata could not be found when defining nested attributes, or the name was incorrect.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(klass, name) ⇒ NestedAttributesMetadataNotFound
constructor
Create the new metadata error.
Methods inherited from MongoidError
Constructor Details
#initialize(klass, name) ⇒ NestedAttributesMetadataNotFound
Create the new metadata error.
18 19 20 21 22 23 24 25 |
# File 'build/mongoid-6.1/lib/mongoid/errors/nested_attributes_metadata_not_found.rb', line 18 def initialize(klass, name) super( ( "nested_attributes_metadata_not_found", { klass: klass, name: name } ) ) end |