summaryrefslogtreecommitdiff
path: root/app/finders
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-03-17 22:34:38 +0900
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-03 02:11:51 +0900
commit7fb3a78a6d23b1fe0b14fab30e1fac4ec8d27d85 (patch)
tree2c1fac89b9bb736c0a2a9844f78f9381cbfbf1e0 /app/finders
parentc79c389525d8f31dfc9119a1eb6e9a41585facb9 (diff)
downloadgitlab-ce-7fb3a78a6d23b1fe0b14fab30e1fac4ec8d27d85.tar.gz
Fix improper method name and spec description
Diffstat (limited to 'app/finders')
-rw-r--r--app/finders/pipelines_finder.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/finders/pipelines_finder.rb b/app/finders/pipelines_finder.rb
index 6a92aedc873..0c91c136a8f 100644
--- a/app/finders/pipelines_finder.rb
+++ b/app/finders/pipelines_finder.rb
@@ -15,7 +15,7 @@ class PipelinesFinder
items = by_name(items)
items = by_username(items)
items = by_yaml_errors(items)
- order_and_sort(items)
+ sort_items(items)
end
private
@@ -107,7 +107,7 @@ class PipelinesFinder
end
end
- def order_and_sort(items)
+ def sort_items(items)
order_by = if %w[id status ref user_id].include?(params[:order_by]) # Allow only indexed columns
params[:order_by]
else