Class: ThinkingSphinx::Middlewares::Glazier::Inner
- Inherits:
-
Object
- Object
- ThinkingSphinx::Middlewares::Glazier::Inner
- Defined in:
- lib/thinking_sphinx/middlewares/glazier.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(context) ⇒ Inner
constructor
A new instance of Inner.
Constructor Details
#initialize(context) ⇒ Inner
Returns a new instance of Inner.
17 18 19 20 |
# File 'lib/thinking_sphinx/middlewares/glazier.rb', line 17 def initialize(context) @context = context @indices = {} end |
Instance Method Details
#call ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/thinking_sphinx/middlewares/glazier.rb', line 22 def call return if context[:panes].empty? context[:results] = context[:results].collect { |result| ThinkingSphinx::Search::Glaze.new context, result, row_for(result), context[:panes] } end |