Sha256: 702ca3c3f4e322b19b4cd50d666dbbe0f30176917f8a74d3f81c23120945d6a5
Contents?: true
Size: 626 Bytes
Versions: 21
Compression:
Stored size: 626 Bytes
Contents
# frozen_string_literal: true module Mongoid module Errors # This error is raised when trying to use the setter for a field that starts # with a dollar sign ($) or contains a dot/period (.). class InvalidDotDollarAssignment < MongoidError # Create the new error. # # @param [ Class ] klass The class of the document. # @param [ Class ] attr The attribute attempted to be written. # # @api private def initialize(klass, attr) super( compose_message("invalid_dot_dollar_assignment", { klass: klass, attr: attr }) ) end end end end
Version data entries
21 entries across 21 versions & 1 rubygems