Class: NewRelic::Rack::DeveloperMode

Inherits:
Object
  • Object
show all
Includes:
DeveloperModeHelper
Defined in:
lib/new_relic/rack/developer_mode.rb

Constant Summary collapse

VIEW_PATH =
File.expand_path('../../../../ui/views/', __FILE__)
HELPER_PATH =
File.expand_path('../../../../ui/helpers/', __FILE__)

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ DeveloperMode

Returns a new instance of DeveloperMode.



23
24
25
# File 'lib/new_relic/rack/developer_mode.rb', line 23

def initialize(app)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



27
28
29
30
# File 'lib/new_relic/rack/developer_mode.rb', line 27

def call(env)
  return @app.call(env) unless /^\/newrelic/ =~ ::Rack::Request.new(env).path_info
  dup._call(env)
end