class method
self.event
Ruby on Rails 8.1.2
Since v8.1.2Signature
self.event()
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!" })
Source
# File railties/lib/rails.rb, line 100
def event
ActiveSupport.event_reporter
end
Defined in railties/lib/rails.rb line 100
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails