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.
5 6 7 8 |
# File 'lib/pliny/middleware/request_store/seed.rb', line 5 def initialize(app, = {}) @app = app @store = [:store] || Pliny::RequestStore end |
Instance Method Details
#call(env) ⇒ Object
10 11 12 13 |
# File 'lib/pliny/middleware/request_store/seed.rb', line 10 def call(env) @store.seed(env) @app.call(env) end |