Sha256: 462dc61ec205e579df6a39f1606979a4de42edf7a194904f207d0d285b58197e
Contents?: true
Size: 366 Bytes
Versions: 3
Compression:
Stored size: 366 Bytes
Contents
module SearchRedux module Helpers def select_best_query_strategy(adapter, query) case adapter when /mysql.*/i SearchRedux::Mysql.compatible_search(query) when /postgres.*/i SearchRedux::Postgres.compatible_search(query) end end def db_adapter ActiveRecord::Base::connection.adapter_name end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
search_redux-1.0.3 | lib/search_redux/helpers.rb |
search_redux-1.0.2 | lib/search_redux/helpers.rb |
search_redux-1.0.1 | lib/search_redux/helpers.rb |