Sha256: e45aa53d35fe6ea663a8c8b1627ff79a033e6f74dfa29d5a7850479904d6b5fa

Contents?: true

Size: 356 Bytes

Versions: 5

Compression:

Stored size: 356 Bytes

Contents

require 'dynamic_sunspot_search/translator/scope'

module DynamicSunspotSearch
  module Translator
    module AnyOf
      def self.apply(query_object, options)
        return unless options.present?
        query_object.tap do |search|
          search.any_of do
            Scope.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_of.rb
dynamic_sunspot_search-0.1.3 lib/dynamic_sunspot_search/translator/any_of.rb
dynamic_sunspot_search-0.1.2 lib/dynamic_sunspot_search/translator/any_of.rb
dynamic_sunspot_search-0.1.1 lib/dynamic_sunspot_search/translator/any_of.rb
dynamic_sunspot_search-0.1.0 lib/dynamic_sunspot_search/translator/any_of.rb