Sha256: ef428d9b47f11af338f19ee4225f7ef7f5348e5c3a5bf03acf2df5d17f0a27e5
Contents?: true
Size: 518 Bytes
Versions: 29
Compression:
Stored size: 518 Bytes
Contents
# frozen_string_literal: true module Mongoid module Errors # Raised when attempting to persist a document that was loaded from the # database with partial fields. class ReadonlyDocument < MongoidError # Instantiate the exception. # # @example Create the error. # ReadonlyDocument.new(Band) # # @param [ Class ] klass The document class. def initialize(klass) super(compose_message("readonly_document", { klass: klass })) end end end end
Version data entries
29 entries across 29 versions & 1 rubygems