Class: Rodauth::Rails::Middleware
- Inherits:
-
Object
- Object
- Rodauth::Rails::Middleware
- Defined in:
- lib/rodauth/rails/middleware.rb
Overview
Middleware that’s added to the Rails middleware stack. Normally the main Roda app could be used directly, but this trick allows the app class to be reloadable.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Middleware
constructor
A new instance of Middleware.
Constructor Details
#initialize(app) ⇒ Middleware
Returns a new instance of Middleware.
7 8 9 |
# File 'lib/rodauth/rails/middleware.rb', line 7 def initialize(app) @app = app end |