Exception: Mongoid::Errors::NoMetadata
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::NoMetadata
- Defined in:
- build/mongoid-7.3/lib/mongoid/errors/no_metadata.rb
Overview
Used when trying to persist data when metadata has not been set.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(klass) ⇒ NoMetadata
constructor
Create the new error.
Methods inherited from MongoidError
Constructor Details
#initialize(klass) ⇒ NoMetadata
Create the new error.
18 19 20 |
# File 'build/mongoid-7.3/lib/mongoid/errors/no_metadata.rb', line 18 def initialize(klass) super(("no_metadata", { klass: klass })) end |