instance method
subscriber_consumes?
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
subscriber_consumes?(subscriber, name)
Errors here must not bypass the per-subscriber error handling in #notify: a subscriber whose consumes? blows up is treated as consuming, so the error surfaces in #emit where it is rescued.
Parameters
-
subscriberreq -
namereq
Source
# File activesupport/lib/active_support/event_reporter.rb, line 636
def subscriber_consumes?(subscriber, name)
return true unless subscriber.respond_to?(:consumes?)
subscriber.consumes?(name)
rescue
true
end
Defined in activesupport/lib/active_support/event_reporter.rb line 636
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::EventReporter