debian-mirror-gitlab/app/controllers/concerns/snippets_sort.rb
2020-08-09 17:44:08 +05:30

9 lines
156 B
Ruby

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