Module: Librato::Rails::Helpers::Controller
- Defined in:
- lib/librato/rails/helpers/controller.rb
Instance Method Summary collapse
- #inherited(other) ⇒ Object
-
#instrument_action(*actions) ⇒ Object
Mark a specific controller action for more detailed instrumenting.
Instance Method Details
#inherited(other) ⇒ Object
13 14 15 16 |
# File 'lib/librato/rails/helpers/controller.rb', line 13 def inherited(other) super Subscribers.inherit_watches(self.to_s, other.to_s) end |
#instrument_action(*actions) ⇒ Object
Mark a specific controller action for more detailed instrumenting
7 8 9 10 11 |
# File 'lib/librato/rails/helpers/controller.rb', line 7 def instrument_action(*actions) actions.each do |action| Subscribers.watch_controller_action(self.to_s, action) end end |