Class: Low::Rack::Default

Inherits:
Object
  • Object
show all
Defined in:
lib/low/rack/default.rb

Constant Summary collapse

LOGGER_KEY =
'rack.logger'

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ Default

Returns a new instance of Default.



7
8
9
# File 'lib/low/rack/default.rb', line 7

def initialize(app)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



11
12
13
14
15
16
# File 'lib/low/rack/default.rb', line 11

def call(env)
  env['low.show_exceptions'] =
    ['development', 'test'].include? ENV['RACK_ENV']

  @app.call(env)
end