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-18 20:50:42 +0300
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-02 20:11:51 +0300
commit98ac988d4d9525b3f07a19e495a9c2666ebee3c6 (patch)
tree34dabbb70d716df5ad123875d24210bdc0d83115 /app/finders
parent8f32724fcb7f05052b53dcd365a064ad87a9535e (diff)
Use order instead of reorder. Improve tests.
Diffstat (limited to 'app/finders')
-rw-r--r--app/finders/pipelines_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/pipelines_finder.rb b/app/finders/pipelines_finder.rb
index 0c91c136a8f..22507472e15 100644
--- a/app/finders/pipelines_finder.rb
+++ b/app/finders/pipelines_finder.rb
@@ -118,6 +118,6 @@ class PipelinesFinder
else
:desc
end
- items.reorder(order_by => sort)
+ items.order(order_by => sort)
end
end