Class: ThinkingSphinx::Middlewares::StaleIdChecker::Inner
- Inherits:
-
Object
- Object
- ThinkingSphinx::Middlewares::StaleIdChecker::Inner
- Defined in:
- lib/thinking_sphinx/middlewares/stale_id_checker.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 |
# File 'lib/thinking_sphinx/middlewares/stale_id_checker.rb', line 17 def initialize(context) @context = context end |
Instance Method Details
#call ⇒ Object
21 22 23 |
# File 'lib/thinking_sphinx/middlewares/stale_id_checker.rb', line 21 def call raise_exception if context[:results].any?(&:nil?) end |