instance method
emitting?
Ruby on Rails edge
Since edgeSignature
emitting?(name)
Whether any event reporter subscriber would currently consume an event with the given name. Handlers can use this to skip building payloads for events that would go nowhere.
Parameters
-
namereq
Source
# File activesupport/lib/active_support/structured_event_subscriber.rb, line 73
def emitting?(name)
ActiveSupport.event_reporter.emitting?(name)
end
Defined in activesupport/lib/active_support/structured_event_subscriber.rb line 73
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::StructuredEventSubscriber