Class: Rethinker::QueryRunner::Selection
- Inherits:
-
Middleware
- Object
- Middleware
- Rethinker::QueryRunner::Selection
- Defined in:
- lib/rethinker/query_runner/selection.rb
Instance Method Summary collapse
Methods inherited from Middleware
Constructor Details
This class inherits a constructor from Rethinker::QueryRunner::Middleware
Instance Method Details
#call(env) ⇒ Object
2 3 4 5 6 7 |
# File 'lib/rethinker/query_runner/selection.rb', line 2 def call(env) if env[:query].is_a? Rethinker::Selection env[:selection], env[:query] = env[:query], env[:query].query end @runner.call(env) end |