Class: Rhoconnect::Middleware::CurrentApp

Inherits:
Object
  • Object
show all
Defined in:
lib/rhoconnect/middleware/current_app.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ CurrentApp

Returns a new instance of CurrentApp.



6
7
8
# File 'lib/rhoconnect/middleware/current_app.rb', line 6

def initialize(app)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



10
11
12
13
# File 'lib/rhoconnect/middleware/current_app.rb', line 10

def call(env)
  env[Rhoconnect::CURRENT_APP] = App.load(APP_NAME)
  @app.call(env)
end