module ActiveRecord::Transactions::ClassMethods

def after_destroy_commit(*args, &block)

Shortcut for after_commit :hook, on: :destroy.
def after_destroy_commit(*args, &block)
  set_options_for_callbacks!(args, on: :destroy)
  set_callback(:commit, :after, *args, &block)
end