Class: Google::Cloud::Debugger::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- Google::Cloud::Debugger::Railtie
- Defined in:
- lib/google/cloud/debugger/rails.rb
Overview
Railtie
Google::Cloud::Debugger::Railtie automatically adds the Google::Cloud::Debugger::Middleware to Rack in a Rails environment.
The Middleware is only added when the
Google::Cloud.configure.use_debugger
setting is true or Rails is
in the production environment.
When loaded, the Google::Cloud::Debugger::Middleware will be inserted after the Rack::ETag Middleware, which is top of the Rack stack, closest to the application code.
The Railtie should also initialize a debugger to be used by the Middleware. See the Configuration Guide on how to configure the Railtie and Middleware.
Class Method Summary collapse
-
.start_agents ⇒ Object
Inform the Railtie that it is safe to start debugger agents.
Class Method Details
.start_agents ⇒ Object
Inform the Railtie that it is safe to start debugger agents. This simply calls Middleware.start_agents. See its documentation for more information.
46 47 48 |
# File 'lib/google/cloud/debugger/rails.rb', line 46 def self.start_agents Google::Cloud::Debugger::Middleware.start_agents end |