Class: Wurk::Web::MiddlewareStack
- Inherits:
-
Object
- Object
- Wurk::Web::MiddlewareStack
- Defined in:
- lib/wurk/web/config.rb
Overview
Engine Rack middleware that applies the host-registered ‘Wurk::Web.use` chain (Devise/Warden/Sorcery/Rack::Auth::Basic) in front of the dashboard. Inserted ahead of `Authorization` so host auth runs first and its `env` (e.g. `env`) is visible to the authorization hook. The chain is built lazily on first request — after host initializers have run — then memoized on the Config.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ MiddlewareStack
constructor
A new instance of MiddlewareStack.
Constructor Details
#initialize(app) ⇒ MiddlewareStack
Returns a new instance of MiddlewareStack.
171 172 173 |
# File 'lib/wurk/web/config.rb', line 171 def initialize(app) @app = app end |