method

ensure_subscribed

Importance_0
v8.1.1 - Show latest stable - 0 notes - Class: Subscriber
ensure_subscribed() public

No documentation

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

Hide source
# File actionpack/lib/action_dispatch/middleware/server_timing.rb, line 32
      def ensure_subscribed
        @mutex.synchronize do
          # Subscribe to all events, except those beginning with "!" Ideally we would be
          # more selective of what is being measured
          @subscriber ||= ActiveSupport::Notifications.subscribe(/\A[^!]/, self)
        end
      end
Register or log in to add new notes.