Sha256: 0f7d229f3962cce87921def8d53e1153b8e2dc2b2fca9a23d0257680b975ee30
Contents?: true
Size: 407 Bytes
Versions: 2
Compression:
Stored size: 407 Bytes
Contents
module QuickSearch::SearcherConfig extend ActiveSupport::Concern private def searcher_config(searcher) # Best Bets searcher is available in QuickSearch core, use app_config if searcher == 'best_bets' QuickSearch::Engine::APP_CONFIG['best_bets'] else #TODO: test for the existence of this? "QuickSearch::Engine::#{searcher.upcase}_CONFIG".constantize end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
quick_search-core-0.0.1 | app/controllers/concerns/quick_search/searcher_config.rb |
quick_search-core-0.0.1.test | app/controllers/concerns/quick_search/searcher_config.rb |