method

add_event_subscriber

Importance_0
v5.0.0.1 - Show latest stable - 0 notes - Class: Subscriber
add_event_subscriber(event) protected

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 59
      def add_event_subscriber(event)
        return if %{ start finish }.include?(event.to_s)

        pattern = "#{event}.#{namespace}"

        # Don't add multiple subscribers (eg. if methods are redefined).
        return if subscriber.patterns.include?(pattern)

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