Class: ActiveRecordQueryStats::ProcessActionSubscriber
- Inherits:
-
ActionController::LogSubscriber
- Object
- ActionController::LogSubscriber
- ActiveRecordQueryStats::ProcessActionSubscriber
- Defined in:
- lib/active_record_query_stats/process_action_subscriber.rb
Overview
NOTE: by inheriting from ‘ActionController::LogSubscriber`, it ensures to display the stats after the tranditional Rails stats e.g. `Completed 204 No Content in 170ms (ActiveRecord: 80.1ms | Allocations: 72539)`
Instance Method Summary collapse
Instance Method Details
#process_action(_event) ⇒ Object
8 9 10 |
# File 'lib/active_record_query_stats/process_action_subscriber.rb', line 8 def process_action(_event) debug color(stats_display, MAGENTA) end |