class Mongoid::Errors::InvalidDotDollarAssignment
This error is raised when trying to use the setter for a field that starts with a dollar sign ($) or contains a dot/period (.).
Public Class Methods
new(klass, attr)
click to toggle source
Create the new error.
@param [ Class ] klass The class of the document. @param [ Class ] attr The attribute attempted to be written.
@api private
Calls superclass method
# File lib/mongoid/errors/invalid_dot_dollar_assignment.rb, line 17 def initialize(klass, attr) super( compose_message("invalid_dot_dollar_assignment", { klass: klass, attr: attr }) ) end