Class: Airbrake::Rails::Railties::ActionControllerTie Private
- Inherits:
-
Object
- Object
- Airbrake::Rails::Railties::ActionControllerTie
- Defined in:
- lib/airbrake/rails/railties/action_controller_tie.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Ties Airbrake APM (routes) and HTTP clients with Rails.
Instance Method Summary collapse
- #call ⇒ Object private
-
#initialize ⇒ ActionControllerTie
constructor
private
A new instance of ActionControllerTie.
Constructor Details
#initialize ⇒ ActionControllerTie
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ActionControllerTie.
16 17 18 19 20 21 |
# File 'lib/airbrake/rails/railties/action_controller_tie.rb', line 16 def initialize @route_subscriber = Airbrake::Rails::ActionControllerRouteSubscriber.new @notify_subscriber = Airbrake::Rails::ActionControllerNotifySubscriber.new @performance_breakdown_subscriber = Airbrake::Rails::ActionControllerPerformanceBreakdownSubscriber.new end |
Instance Method Details
#call ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/airbrake/rails/railties/action_controller_tie.rb', line 23 def call ActiveSupport.on_load(:action_controller, run_once: true, yield: self) do # Patches ActionController with methods that allow us to retrieve # interesting request data. Appends that information to notices. ::ActionController::Base.include(Airbrake::Rails::ActionController) tie_routes_apm tie_http_integrations end end |