Sha256: 97735c86ba39ebca3e25cae580e94cdc7fd629417be15423e37b9a9a928dc76c

Contents?: true

Size: 362 Bytes

Versions: 5

Compression:

Stored size: 362 Bytes

Contents

require 'dynamic_sunspot_search/translator/text_search'

module DynamicSunspotSearch
  module Translator
    module Any
      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
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dynamic_sunspot_search-0.1.4 lib/dynamic_sunspot_search/translator/any.rb
dynamic_sunspot_search-0.1.3 lib/dynamic_sunspot_search/translator/any.rb
dynamic_sunspot_search-0.1.2 lib/dynamic_sunspot_search/translator/any.rb
dynamic_sunspot_search-0.1.1 lib/dynamic_sunspot_search/translator/any.rb
dynamic_sunspot_search-0.1.0 lib/dynamic_sunspot_search/translator/any.rb