Class: ThinkingSphinx::Middlewares::ValidOptions

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

Instance Method Summary collapse

Methods inherited from Middleware

#initialize

Constructor Details

This class inherits a constructor from ThinkingSphinx::Middlewares::Middleware

Instance Method Details

#call(contexts) ⇒ Object



6
7
8
9
10
# File 'lib/thinking_sphinx/middlewares/valid_options.rb', line 6

def call(contexts)
  contexts.each { |context| check_options context.search.options }

  app.call contexts
end