Welcome to mirror list, hosted at ThFree Co, Russian Federation.

snippets_sort.rb « concerns « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f122c843af741ffffba5a1d64965d83b366432c5 (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

module SnippetsSort
  extend ActiveSupport::Concern

  def sort_param
    params[:sort].presence || 'updated_desc'
  end
end