method

event

rails latest stable - Class: Rails

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

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!" })