Exception: Mongoid::Errors::InvalidDotDollarAssignment
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidDotDollarAssignment
- Defined in:
- lib/mongoid/errors/invalid_dot_dollar_assignment.rb
Overview
This error is raised when trying to use the setter for a field that starts with a dollar sign ($) or contains a dot/period (.).
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(klass, attr) ⇒ InvalidDotDollarAssignment
constructor
private
Create the new error.
Methods inherited from MongoidError
Constructor Details
#initialize(klass, attr) ⇒ InvalidDotDollarAssignment
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Create the new error.
17 18 19 20 21 |
# File 'lib/mongoid/errors/invalid_dot_dollar_assignment.rb', line 17 def initialize(klass, attr) super( ("invalid_dot_dollar_assignment", { klass: klass, attr: attr }) ) end |