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:
authorblackst0ne <blackst0ne.ru@gmail.com>2018-04-04 12:19:47 +0300
committerSean McGivern <sean@mcgivern.me.uk>2018-04-04 12:19:47 +0300
commit3d3b46f344748420a638f8a66745d974fa2c2748 (patch)
treeaf54ae3abd6f99cecb02107344c340d441fa2829 /app/finders/todos_finder.rb
parente9ea520878b740ec0a66a2789f4955cfbdf17447 (diff)
[Rails5] Rename `sort` methods to `sort_by_attribute`
Diffstat (limited to 'app/finders/todos_finder.rb')
-rw-r--r--app/finders/todos_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/todos_finder.rb b/app/finders/todos_finder.rb
index 150f4c7688b..09e2c586f2a 100644
--- a/app/finders/todos_finder.rb
+++ b/app/finders/todos_finder.rb
@@ -119,7 +119,7 @@ class TodosFinder
end
def sort(items)
- params[:sort] ? items.sort(params[:sort]) : items.order_id_desc
+ params[:sort] ? items.sort_by_attribute(params[:sort]) : items.order_id_desc
end
def by_action(items)