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

9 lines
156 B
Ruby

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