Class: ThinkingSphinx::Middlewares::Glazier::Inner

Inherits:
Object
  • Object
show all
Defined in:
lib/thinking_sphinx/middlewares/glazier.rb

Instance Method Summary (collapse)

Constructor Details

- (Inner) initialize(context)

Returns a new instance of Inner



15
16
17
# File 'lib/thinking_sphinx/middlewares/glazier.rb', line 15

def initialize(context)
  @context = context
end

Instance Method Details

- (Object) call



19
20
21
22
23
24
25
26
# File 'lib/thinking_sphinx/middlewares/glazier.rb', line 19

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