Module: DynamicSunspotSearch::Translator::Any

Defined in:
lib/dynamic_sunspot_search/translator/any.rb

Class Method Summary collapse

Class Method Details

.apply(query_object, options) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/dynamic_sunspot_search/translator/any.rb', line 6

def self.apply(query_object, options)
  return unless options.present?
  query_object.tap do |search|
    search.any do
      TextSearch.apply(self, options)
    end
  end
end