Class: ActionController::Base
- Inherits:
-
Object
- Object
- ActionController::Base
- Defined in:
- lib/bleak_house/rails/action_controller.rb
Overview
Override ActionController::Base.process and process_with_exception to make sure the request tag for the snapshot gets set as a side-effect of request processing.
Class Method Summary collapse
- .process_with_bleak_house(request, *args) ⇒ Object
- .process_with_exception_with_bleak_house(request, *args) ⇒ Object
Class Method Details
.process_with_bleak_house(request, *args) ⇒ Object
5 6 7 8 |
# File 'lib/bleak_house/rails/action_controller.rb', line 5 def process_with_bleak_house(request, *args) BleakHouse::Rails.set_request_name request process_without_bleak_house(request, *args) end |
.process_with_exception_with_bleak_house(request, *args) ⇒ Object
11 12 13 14 |
# File 'lib/bleak_house/rails/action_controller.rb', line 11 def process_with_exception_with_bleak_house(request, *args) BleakHouse::Rails.set_request_name request, "/error" process_with_exception_without_bleak_house(request, *args) end |