module MR::AfterCommit::CallbackProcsHash
Public Class Methods
new()
click to toggle source
# File lib/mr/after_commit/record_procs_methods.rb, line 71 def self.new Hash.new do |h, k| if !VALID_CALLBACK_TYPES.include?(k) raise ArgumentError, "#{k.inspect} is not a valid callback " \ "type, use: #{VALID_CALLBACK_TYPES.join(', ')}" end h[k] = [] end end