method
event
v8.1.1 -
Show 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!" })