diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-03-17 22:34:38 +0900 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-03 02:11:51 +0900 |
commit | 7fb3a78a6d23b1fe0b14fab30e1fac4ec8d27d85 (patch) | |
tree | 2c1fac89b9bb736c0a2a9844f78f9381cbfbf1e0 /app | |
parent | c79c389525d8f31dfc9119a1eb6e9a41585facb9 (diff) | |
download | gitlab-ce-7fb3a78a6d23b1fe0b14fab30e1fac4ec8d27d85.tar.gz |
Fix improper method name and spec description
Diffstat (limited to 'app')
-rw-r--r-- | app/finders/pipelines_finder.rb | 4 |
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 |