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.



17
18
19
# File 'lib/thinking_sphinx/middlewares/stale_id_checker.rb', line 17

def initialize(context)
  @context = context
end

Instance Method Details

#callObject



21
22
23
# File 'lib/thinking_sphinx/middlewares/stale_id_checker.rb', line 21

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