Exception: Mongoid::Errors::ReadonlyDocument
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::ReadonlyDocument
- Defined in:
- build/mongoid-7.3/lib/mongoid/errors/readonly_document.rb
Overview
Raised when attempting to persist a document that was loaded from the database with partial fields.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(klass) ⇒ ReadonlyDocument
constructor
Instnatiate the exception.
Methods inherited from MongoidError
Constructor Details
#initialize(klass) ⇒ ReadonlyDocument
Instnatiate the exception.
21 22 23 |
# File 'build/mongoid-7.3/lib/mongoid/errors/readonly_document.rb', line 21 def initialize(klass) super(("readonly_document", { klass: klass })) end |