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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-03-27 08:51:28 +0300
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-02 20:11:51 +0300
commitf7b5800a1dc6a2a59758aea502a2ddb8f103634b (patch)
tree970a9e925c2e2df2d367a5fdfb917e2209f66035 /app/finders
parentf5f7f90abe6bc0f4e19e0abace72c8b1fd69f519 (diff)
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