Class: AlacrityRails::Probe::ActionView
- Inherits:
-
Object
- Object
- AlacrityRails::Probe::ActionView
- Defined in:
- lib/alacrity-rails/probe/action_view.rb
Class Method Summary collapse
Class Method Details
.activate ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/alacrity-rails/probe/action_view.rb', line 4 def self.activate ActiveSupport::Notifications.subscribe(/render_template.action_view/) do |name, started, finished, unique_id, data| AlacrityRails::Client.store_timeline_event( name: 'Template', event_type: 'template', engine: 'ActionView', started_at: started, finished_at: finished, detail: data[:identifier] ) end end |