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

#initialize(context) ⇒ Inner

Returns a new instance of Inner



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

def initialize(context)
  @context = context
end

Instance Method Details

#callObject



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

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