diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2018-04-04 12:19:47 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-04-04 12:19:47 +0300 |
commit | 3d3b46f344748420a638f8a66745d974fa2c2748 (patch) | |
tree | af54ae3abd6f99cecb02107344c340d441fa2829 /app/models/todo.rb | |
parent | e9ea520878b740ec0a66a2789f4955cfbdf17447 (diff) |
[Rails5] Rename `sort` methods to `sort_by_attribute`
Diffstat (limited to 'app/models/todo.rb')
-rw-r--r-- | app/models/todo.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/todo.rb b/app/models/todo.rb index 8afacd188e0..a2ab405fdbe 100644 --- a/app/models/todo.rb +++ b/app/models/todo.rb @@ -50,7 +50,7 @@ class Todo < ActiveRecord::Base # Priority sorting isn't displayed in the dropdown, because we don't show # milestones, but still show something if the user has a URL with that # selected. - def sort(method) + def sort_by_attribute(method) sorted = case method.to_s when 'priority', 'label_priority' then order_by_labels_priority |