gitlab-org--gitlab-foss/app/controllers/concerns/snippets_sort.rb

10 lines
156 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module SnippetsSort
extend ActiveSupport::Concern
def sort_param
params[:sort].presence || 'updated_desc'
end
end