module Granite::Action::Transaction::ClassMethods

Private Instance Methods

after_commit(*args, &block) click to toggle source

Defines a callback which will be triggered right after transaction committed Uses the same arguments as `ActiveSupport::Callbacks.set_callback` except for the first two

# File lib/granite/action/transaction.rb, line 20
def after_commit(*args, &block)
  set_callback :commit, :after, *args, &block
end