fix low ruby version support bug

openi_sso
p31729568 6 years ago
parent 478a884301
commit f37d02bcfb

@ -17,7 +17,7 @@ module CustomSortable
relations.send(order_method, "#{sort_by} #{sort_direction}") relations.send(order_method, "#{sort_by} #{sort_direction}")
end end
def multiple_custom_sort(relations, **opts) def multiple_custom_sort(relations, opts)
opts.each do |sort_by, sort_direction| opts.each do |sort_by, sort_direction|
relations = custom_sort(relations, sort_by, sort_direction) relations = custom_sort(relations, sort_by, sort_direction)
end end

Loading…
Cancel
Save