Method: Eventish::ActiveRecord::Callback#after_commit_event

Defined in:
lib/eventish/active_record/callback.rb

#after_commit_event(*args) ⇒ Object

Commit events



93
94
95
96
# File 'lib/eventish/active_record/callback.rb', line 93

def after_commit_event(*args)
  event = args.shift
  after_commit -> { ::Eventish.publish(event, self) }, *args
end