Exception: Mongoid::Errors::UnknownAttribute
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::UnknownAttribute
- Defined in:
- build/mongoid-7.3/lib/mongoid/errors/unknown_attribute.rb
Overview
This error is raised when trying to set a value in Mongoid that is not already set with dynamic attributes or the field is not defined.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(klass, name) ⇒ UnknownAttribute
constructor
Create the new error.
Methods inherited from MongoidError
Constructor Details
#initialize(klass, name) ⇒ UnknownAttribute
Create the new error.
20 21 22 23 24 |
# File 'build/mongoid-7.3/lib/mongoid/errors/unknown_attribute.rb', line 20 def initialize(klass, name) super( ("unknown_attribute", { klass: klass.name, name: name }) ) end |