Class: Dispatcher
- Inherits:
-
Object
- Object
- Dispatcher
- Defined in:
- lib/bleak_house/rails/dispatcher.rb
Overview
Override Dispatcher#prepare and Dispatcher#reset_after_dispatch so that each request makes before-and-after usage snapshots.
Class Method Summary collapse
Class Method Details
.prepare_application_with_bleak_house ⇒ Object
6 7 8 9 |
# File 'lib/bleak_house/rails/dispatcher.rb', line 6 def prepare_application_with_bleak_house prepare_application_without_bleak_house BleakHouse::Rails::MEMLOGGER.snapshot(BleakHouse::Rails::LOGFILE, 'core rails', BleakHouse::Rails::WITH_SPECIALS) end |
.reset_after_dispatch_with_bleak_house ⇒ Object
12 13 14 15 |
# File 'lib/bleak_house/rails/dispatcher.rb', line 12 def reset_after_dispatch_with_bleak_house BleakHouse::Rails::MEMLOGGER.snapshot(BleakHouse::Rails::LOGFILE, BleakHouse::Rails.last_request_name || 'unknown', BleakHouse::Rails::WITH_SPECIALS) reset_after_dispatch_without_bleak_house end |