Method: ActionDispatch::ServerTiming::Subscriber#ensure_subscribed
- Defined in:
- actionpack/lib/action_dispatch/middleware/server_timing.rb
#ensure_subscribed ⇒ Object
32 33 34 35 36 37 38 |
# 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 |