Sha256: 53880f4330260e1db472001c0633ad6e1fa057e2e5d9d0388da7cc3677e89400
Contents?: true
Size: 716 Bytes
Versions: 21
Compression:
Stored size: 716 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 module Mongoid module Errors # This error is raised when calling #save! or .create! on a model when one # of the callbacks returns false. class DeleteRestriction < MongoidError # Create the new callbacks error. # # @example Create the new callbacks error. # Callbacks.new(Post, :create!) # # @param [ Class ] document # @param [ Symbol ] association # # @since 3.0.0 def initialize(document, relation) super( compose_message( "delete_restriction", { document: document.class, relation: relation } ) ) end end end end
Version data entries
21 entries across 21 versions & 2 rubygems