class ActiveSupport::Subscriber

def publish_event(event) # :nodoc:

:nodoc:
def publish_event(event) # :nodoc:
  method = event.name.split(".").first
  send(method, event)
end