Class: Chillout::Subscribers::ActionControllerNotifications
- Inherits:
-
Object
- Object
- Chillout::Subscribers::ActionControllerNotifications
- Defined in:
- lib/chillout/subscribers/action_controller_notifications.rb
Defined Under Namespace
Classes: RequestMetric
Instance Method Summary collapse
Instance Method Details
#enable(client) ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'lib/chillout/subscribers/action_controller_notifications.rb', line 38 def enable(client) name = "process_action.action_controller" ActiveSupport::Notifications.subscribe(name) do |*args| event = ActiveSupport::Notifications::Event.new(*args) metric = RequestMetric.new(event) client.enqueue(metric) end end |