Sha256: 1e757291097c08e77631240fc51ebc0c2a0cf3728ce39e4834f5447d49a0e38b

Contents?: true

Size: 325 Bytes

Versions: 5

Compression:

Stored size: 325 Bytes

Contents

require 'dynamic_sunspot_search/translator/with'

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