Class: Google::Cloud::Debugger::Railtie

Inherits:
Rails::Railtie
  • Object
show all
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 certain conditions are met. See Railtie.use_debugger? for detail.

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.