Exception: Mongoid::Errors::NoMetadata
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::NoMetadata
- Defined in:
- 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.
16 17 18 |
# File 'lib/mongoid/errors/no_metadata.rb', line 16 def initialize(klass) super(("no_metadata", { klass: klass })) end |