Module: SnippetsSort

Extended by:
ActiveSupport::Concern
Included in:
Dashboard::SnippetsController, SnippetsActions
Defined in:
app/controllers/concerns/snippets_sort.rb

Instance Method Summary collapse

Instance Method Details

#sort_paramObject


6
7
8
# File 'app/controllers/concerns/snippets_sort.rb', line 6

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