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