Class: ActionController::Base

Inherits:
Object
  • Object
show all
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

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