Sha256: e1a07a019395025b47e53c7db0e83ea276b6d42e83f160a64c07a7790d3f6124

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 All
      def self.apply(query_object, options)
        return unless options.present?
        query_object.tap do |search|
          search.all 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/all.rb
dynamic_sunspot_search-0.1.3 lib/dynamic_sunspot_search/translator/all.rb
dynamic_sunspot_search-0.1.2 lib/dynamic_sunspot_search/translator/all.rb
dynamic_sunspot_search-0.1.1 lib/dynamic_sunspot_search/translator/all.rb
dynamic_sunspot_search-0.1.0 lib/dynamic_sunspot_search/translator/all.rb