instance method subscriber_consumes?

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

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

subscriber req
name req
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

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close