method

add_event_subscriber

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Subscriber
add_event_subscriber(event) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/subscriber.rb, line 85
        def add_event_subscriber(event) # :doc:
          return if invalid_event?(event)

          pattern = prepare_pattern(event)

          # Don't add multiple subscribers (e.g. if methods are redefined).
          return if pattern_subscribed?(pattern)

          subscriber.patterns[pattern] = notifier.subscribe(pattern, subscriber)
        end
Register or log in to add new notes.