Class: ThinkingSphinx::Middlewares::ActiveRecordTranslator

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

Defined Under Namespace

Classes: Inner

Constant Summary collapse

NO_MODEL =
Struct.new(:primary_key).new(:id).freeze
NO_INDEX =
Struct.new(:primary_key).new(:id).freeze

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



9
10
11
12
13
14
15
# File 'lib/thinking_sphinx/middlewares/active_record_translator.rb', line 9

def call(contexts)
  contexts.each do |context|
    Inner.new(context).call
  end

  app.call contexts
end