diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-03-27 14:51:28 +0900 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-03 02:11:51 +0900 |
commit | f7b5800a1dc6a2a59758aea502a2ddb8f103634b (patch) | |
tree | 970a9e925c2e2df2d367a5fdfb917e2209f66035 /app/finders | |
parent | f5f7f90abe6bc0f4e19e0abace72c8b1fd69f519 (diff) | |
download | gitlab-ce-f7b5800a1dc6a2a59758aea502a2ddb8f103634b.tar.gz |
Add a blank line between blocks
Diffstat (limited to 'app/finders')
-rw-r--r-- | app/finders/pipelines_finder.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/finders/pipelines_finder.rb b/app/finders/pipelines_finder.rb index 22507472e15..7935878d1d5 100644 --- a/app/finders/pipelines_finder.rb +++ b/app/finders/pipelines_finder.rb @@ -113,11 +113,13 @@ class PipelinesFinder else :id end + sort = if params[:sort] =~ /\A(ASC|DESC)\z/i params[:sort] else :desc end + items.order(order_by => sort) end end |