Sha256: 9474036201ea512ba864ba46c7472ab43399c4ba466ad4acac03c7c946bf9ee1
Contents?: true
Size: 571 Bytes
Versions: 27
Compression:
Stored size: 571 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 module Mongoid module Errors # This error is raised when trying to persist an embedded document # when there is no parent set. class NoParent < MongoidError # Create the new error. # # @example Create the new error. # NoParent.new(klass) # # @param [ Class ] klass The class of the embedded document. # # @since 3.0.0 def initialize(klass) super( compose_message("no_parent", { klass: klass }) ) end end end end
Version data entries
27 entries across 27 versions & 2 rubygems