class RailsEventStore::AfterCommitAsyncDispatcher::AsyncRecord

Attributes

schedule_proc[R]

Public Class Methods

new(schedule_proc) click to toggle source
# File lib/rails_event_store/after_commit_async_dispatcher.rb, line 32
def initialize(schedule_proc)
  @schedule_proc = schedule_proc
end

Public Instance Methods

before_committed!() click to toggle source
# File lib/rails_event_store/after_commit_async_dispatcher.rb, line 42
def before_committed!; end
committed!(*) click to toggle source
# File lib/rails_event_store/after_commit_async_dispatcher.rb, line 36
def committed!(*)
  schedule_proc.call
end
rolledback!(*) click to toggle source
# File lib/rails_event_store/after_commit_async_dispatcher.rb, line 40
def rolledback!(*); end
trigger_transactional_callbacks?() click to toggle source
# File lib/rails_event_store/after_commit_async_dispatcher.rb, line 44
def trigger_transactional_callbacks?; end