Exception: Mongoid::Errors::ReadonlyDocument
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::ReadonlyDocument
- Defined in:
- 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
Instantiate the exception.
Methods inherited from MongoidError
Constructor Details
#initialize(klass) ⇒ ReadonlyDocument
Instantiate the exception.
17 18 19 |
# File 'lib/mongoid/errors/readonly_document.rb', line 17 def initialize(klass) super(("readonly_document", { klass: klass })) end |