method
ensure_subscribed
v7.1.3.2 -
Show latest stable
- Class:
ActionDispatch::ServerTiming::Subscriber
ensure_subscribed()public
No documentation available.
# File actionpack/lib/action_dispatch/middleware/server_timing.rb, line 30
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