Class: AppMap::Rails::RequestHandler::HookMethod
- Inherits:
-
Hook::Method
- Object
- Hook::Method
- AppMap::Rails::RequestHandler::HookMethod
- Defined in:
- lib/appmap/rails/request_handler.rb
Instance Attribute Summary
Attributes inherited from Hook::Method
#hook_class, #hook_method, #hook_package, #method_display_name
Instance Method Summary collapse
-
#initialize ⇒ HookMethod
constructor
A new instance of HookMethod.
Methods inherited from Hook::Method
Constructor Details
#initialize ⇒ HookMethod
Returns a new instance of HookMethod.
84 85 86 87 88 89 90 |
# File 'lib/appmap/rails/request_handler.rb', line 84 def initialize # ActionController::Instrumentation has issued start_processing.action_controller and # process_action.action_controller since Rails 3. Therefore it's a stable place to hook # the request. Rails controller notifications can't be used directly because they don't # provide response headers, and we want the Content-Type. super(nil, ActionController::Instrumentation, ActionController::Instrumentation.instance_method(:process_action)) end |