Module: ElasticQueue::Sorts

Extended by:
ActiveSupport::Concern
Included in:
QueryOptions
Defined in:
lib/elastic_queue/sorts.rb

Instance Method Summary collapse

Instance Method Details

#options_to_sorts(options) ⇒ Object



5
6
7
# File 'lib/elastic_queue/sorts.rb', line 5

def options_to_sorts(options)
  options.map { |k, v| option_to_sort(k, v) }
end