Sha256: e50d92948b900ac3e5158c3476deaf221b7220005dc63f7a8b8b42ed3c58151b
Contents?: true
Size: 637 Bytes
Versions: 27
Compression:
Stored size: 637 Bytes
Contents
# frozen_string_literal: true module Mongoid module Errors # This error is raised when calling #save! or .create! on a model when one # of the callbacks returns false. class Callback < MongoidError # Create the new callbacks error. # # @example Create the new callbacks error. # Callbacks.new(Post, :create!) # # @param [ Class ] klass The class of the document. # @param [ Symbol ] method The name of the method. def initialize(klass, method) super( compose_message("callbacks", { klass: klass, method: method }) ) end end end end
Version data entries
27 entries across 27 versions & 1 rubygems