Class: ThinkingSphinx::Middlewares::StaleIdChecker::Inner

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

Instance Method Summary (collapse)

Constructor Details

- (Inner) initialize(context)



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

def initialize(context)
  @context = context
end

Instance Method Details

- (Object) call



19
20
21
# File 'lib/thinking_sphinx/middlewares/stale_id_checker.rb', line 19

def call
  raise_exception if context[:results].any?(&:nil?)
end