Sha256: b20637f3613b3d41a233380d316037bbc9befe57868286c955ba0a0597c62855

Contents?: true

Size: 280 Bytes

Versions: 5

Compression:

Stored size: 280 Bytes

Contents

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