123456789_123456789_123456789_123456789_123456789_

Class: Puma::Configuration::ConfigMiddleware

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

Overview

Injects the ::Puma::Configuration object into the env

Class Method Summary

Instance Method Summary

Constructor Details

.new(config, app) ⇒ ConfigMiddleware

[ GitHub ]

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

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

Instance Method Details

#call(env)

[ GitHub ]

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

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