Sha256: 523c805d530e0be0955db0f3dbc3ebc53e6e3aa436e4d86c94e92dff4785228a

Contents?: true

Size: 356 Bytes

Versions: 5

Compression:

Stored size: 356 Bytes

Contents

require 'dynamic_sunspot_search/translator/scope'

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