summaryrefslogtreecommitdiff
path: root/app/controllers/projects/milestones_controller.rb
diff options
context:
space:
mode:
authorblackst0ne <blackst0ne.ru@gmail.com>2018-04-04 09:19:47 +0000
committerSean McGivern <sean@mcgivern.me.uk>2018-04-04 09:19:47 +0000
commit3d3b46f344748420a638f8a66745d974fa2c2748 (patch)
treeaf54ae3abd6f99cecb02107344c340d441fa2829 /app/controllers/projects/milestones_controller.rb
parente9ea520878b740ec0a66a2789f4955cfbdf17447 (diff)
downloadgitlab-ce-3d3b46f344748420a638f8a66745d974fa2c2748.tar.gz
[Rails5] Rename `sort` methods to `sort_by_attribute`
Diffstat (limited to 'app/controllers/projects/milestones_controller.rb')
-rw-r--r--app/controllers/projects/milestones_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/milestones_controller.rb b/app/controllers/projects/milestones_controller.rb
index e898136d203..c5a044541f1 100644
--- a/app/controllers/projects/milestones_controller.rb
+++ b/app/controllers/projects/milestones_controller.rb
@@ -14,7 +14,7 @@ class Projects::MilestonesController < Projects::ApplicationController
def index
@sort = params[:sort] || 'due_date_asc'
- @milestones = milestones.sort(@sort)
+ @milestones = milestones.sort_by_attribute(@sort)
respond_to do |format|
format.html do