Class: Rhoconnect::Middleware::CurrentApp
- Inherits:
-
Object
- Object
- Rhoconnect::Middleware::CurrentApp
- Defined in:
- lib/rhoconnect/middleware/current_app.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ CurrentApp
constructor
A new instance of CurrentApp.
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 |