123456789_123456789_123456789_123456789_123456789_

Class: Puma::Configuration::ConfigMiddleware

Relationships & Source Files
Inherits: Object
Defined in: lib/puma/configuration.rb

Overview

Injects the Configuration object into the env

Class Method Summary

Instance Method Summary

Constructor Details

.new(config, app) ⇒ ConfigMiddleware

[ GitHub ]

  
# File 'lib/puma/configuration.rb', line 272

def initialize(config, app)
  @config = config
  @app = app
end

Instance Method Details

#call(env)

[ GitHub ]

  
# File 'lib/puma/configuration.rb', line 277

def call(env)
  env[Const::PUMA_CONFIG] = @config
  @app.call(env)
end