summaryrefslogtreecommitdiff
path: root/app/finders
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-03-27 14:51:28 +0900
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-03 02:11:51 +0900
commitf7b5800a1dc6a2a59758aea502a2ddb8f103634b (patch)
tree970a9e925c2e2df2d367a5fdfb917e2209f66035 /app/finders
parentf5f7f90abe6bc0f4e19e0abace72c8b1fd69f519 (diff)
downloadgitlab-ce-f7b5800a1dc6a2a59758aea502a2ddb8f103634b.tar.gz
Add a blank line between blocks
Diffstat (limited to 'app/finders')
-rw-r--r--app/finders/pipelines_finder.rb2
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