Sha256: 984f755f0cad00bdd2cc5d331feceabe0ffd4a841d2694c11658f2b045c77a23
Contents?: true
Size: 569 Bytes
Versions: 27
Compression:
Stored size: 569 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 module Mongoid module Errors # Raised when attempting to call create or create! through a # references_many when the parent document has not been saved. This # prevents the child from getting presisted and immediately being orphaned. class UnsavedDocument < MongoidError def initialize(base, document) super( compose_message( "unsaved_document", { base: base.class.name, document: document.class.name } ) ) end end end end
Version data entries
27 entries across 27 versions & 2 rubygems