method
event
rails latest stable - Class:
Rails
event()public
Returns the ActiveSupport::EventReporter of the current Rails project, otherwise it returns nil if there is no project.
Rails.event.notify("my_event", { message: "Hello, world!" })