class ActiveSupport::Notifications::Fanout::Subscribers::Evented

def publish_event(event)

def publish_event(event)
  if @can_publish_event
    @delegate.publish_event event
  else
    publish(event.name, event.time, event.end, event.transaction_id, event.payload)
  end
end