Class: Pliny::Middleware::RequestStore::Seed
- Inherits:
-
Object
- Object
- Pliny::Middleware::RequestStore::Seed
- Defined in:
- lib/pliny/middleware/request_store/seed.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, options = {}) ⇒ Seed
constructor
A new instance of Seed.
Constructor Details
#initialize(app, options = {}) ⇒ Seed
Returns a new instance of Seed.
3 4 5 6 |
# File 'lib/pliny/middleware/request_store/seed.rb', line 3 def initialize(app, ={}) @app = app @store = [:store] || Pliny::RequestStore end |
Instance Method Details
#call(env) ⇒ Object
8 9 10 11 |
# File 'lib/pliny/middleware/request_store/seed.rb', line 8 def call(env) @store.seed(env) @app.call(env) end |