Class: Grumlin::Middlewares::RunQuery
- Inherits:
-
Middleware
- Object
- Middleware
- Grumlin::Middlewares::RunQuery
- Defined in:
- lib/grumlin/middlewares/run_query.rb
Instance Method Summary collapse
Instance Method Details
#call(env) ⇒ Object
4 5 6 |
# File 'lib/grumlin/middlewares/run_query.rb', line 4 def call(env) env[:results] = env[:pool].acquire { |c| c.write(env[:query]) } end |