Class: NewRelic::Rack::DeveloperMode
- Inherits:
-
Object
- Object
- NewRelic::Rack::DeveloperMode
- Includes:
- DeveloperModeHelper
- Defined in:
- lib/new_relic/rack/developer_mode.rb
Constant Summary collapse
- VIEW_PATH =
File.('../../../../ui/views/', __FILE__)
- HELPER_PATH =
File.('../../../../ui/helpers/', __FILE__)
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ DeveloperMode
constructor
A new instance of DeveloperMode.
Constructor Details
#initialize(app) ⇒ DeveloperMode
Returns a new instance of DeveloperMode.
19 20 21 |
# File 'lib/new_relic/rack/developer_mode.rb', line 19 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
23 24 25 26 |
# File 'lib/new_relic/rack/developer_mode.rb', line 23 def call(env) return @app.call(env) unless /^\/newrelic/ =~ ::Rack::Request.new(env).path_info dup._call(env) end |