Class: AppMap::Handler::Rails::RequestHandler::HookMethod
- Inherits:
 - 
      AppMap::Hook::Method
      
        
- Object
 - AppMap::Hook::Method
 - AppMap::Handler::Rails::RequestHandler::HookMethod
 
 
- Defined in:
 - lib/appmap/handler/rails/request_handler.rb
 
Constant Summary
Constants inherited from AppMap::Hook::Method
AppMap::Hook::Method::HOOK_DISABLE_KEY
Constants included from AppMap::Hook::RecordAround
AppMap::Hook::RecordAround::APPMAP_OUTPUT_DIR
Instance Attribute Summary
Attributes inherited from AppMap::Hook::Method
#arity, #hook_class, #hook_method, #hook_package, #parameters, #record_around
Instance Method Summary collapse
- 
  
    
      #initialize  ⇒ HookMethod 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of HookMethod.
 
Methods inherited from AppMap::Hook::Method
Methods included from AppMap::Hook::RecordAround
#record_around?, #record_around_after, #record_around_before
Constructor Details
#initialize ⇒ HookMethod
Returns a new instance of HookMethod.
      107 108 109 110 111 112 113  | 
    
      # File 'lib/appmap/handler/rails/request_handler.rb', line 107 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  |