Method: Eventish::ActiveRecord::Callback#around_create_event

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

#around_create_event(*args) ⇒ Object



34
35
36
37
# File 'lib/eventish/active_record/callback.rb', line 34

def around_create_event(*args)
  event = args.shift
  around_create ->(_object, block) { ::Eventish.publish(event, self, block: block) }, *args
end