Sha256: 7d09eb5770f90aa3c2dc4fe9d66fd175619534e13972d12c34b2984713353062
Contents?: true
Size: 885 Bytes
Versions: 3
Compression:
Stored size: 885 Bytes
Contents
module ThinkingSphinx::Middlewares; end %w[middleware active_record_translator geographer glazier ids_only inquirer sphinxql stale_id_checker stale_id_filter utf8].each do |middleware| require "thinking_sphinx/middlewares/#{middleware}" end module ThinkingSphinx::Middlewares def self.use(builder, middlewares) middlewares.each { |m| builder.use m } end BASE_MIDDLEWARES = [SphinxQL, Geographer, Inquirer] DEFAULT = ::Middleware::Builder.new do use StaleIdFilter ThinkingSphinx::Middlewares.use self, BASE_MIDDLEWARES use UTF8 use ActiveRecordTranslator use StaleIdChecker use Glazier end RAW_ONLY = ::Middleware::Builder.new do ThinkingSphinx::Middlewares.use self, BASE_MIDDLEWARES use UTF8 end IDS_ONLY = ::Middleware::Builder.new do ThinkingSphinx::Middlewares.use self, BASE_MIDDLEWARES use IdsOnly end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
thinking-sphinx-3.0.6 | lib/thinking_sphinx/middlewares.rb |
thinking-sphinx-3.0.5 | lib/thinking_sphinx/middlewares.rb |
thinking-sphinx-3.0.4 | lib/thinking_sphinx/middlewares.rb |