diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2018-04-04 09:19:47 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-04-04 09:19:47 +0000 |
commit | 3d3b46f344748420a638f8a66745d974fa2c2748 (patch) | |
tree | af54ae3abd6f99cecb02107344c340d441fa2829 /app/models/issue.rb | |
parent | e9ea520878b740ec0a66a2789f4955cfbdf17447 (diff) | |
download | gitlab-ce-3d3b46f344748420a638f8a66745d974fa2c2748.tar.gz |
[Rails5] Rename `sort` methods to `sort_by_attribute`
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 6a94d60c828..13abc6c1a0d 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -116,7 +116,7 @@ class Issue < ActiveRecord::Base 'project_id' end - def self.sort(method, excluded_labels: []) + def self.sort_by_attribute(method, excluded_labels: []) case method.to_s when 'due_date' then order_due_date_asc when 'due_date_asc' then order_due_date_asc |