summaryrefslogtreecommitdiff
path: root/app/controllers/groups
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-06-26 10:57:36 +0200
committerMarin Jankovski <marin@gitlab.com>2014-06-30 09:44:30 +0200
commit0723bf1afaaf13ddcb58c211161389052d18e501 (patch)
treee9bcbbe629ade11a0c8eec61b4023a7531da05ad /app/controllers/groups
parent8e8c074205f4c85238309f4e21e80748f09d0ec8 (diff)
downloadgitlab-ce-0723bf1afaaf13ddcb58c211161389052d18e501.tar.gz
Move group milestone processing from service to model.
Diffstat (limited to 'app/controllers/groups')
-rw-r--r--app/controllers/groups/milestones_controller.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/groups/milestones_controller.rb b/app/controllers/groups/milestones_controller.rb
index e85ef3ff25f..cb5fed0bc3e 100644
--- a/app/controllers/groups/milestones_controller.rb
+++ b/app/controllers/groups/milestones_controller.rb
@@ -5,8 +5,7 @@ class Groups::MilestonesController < ApplicationController
@group = Group.find_by(path: params[:group_id])
project_ids = @group.projects
project_milestones = Milestone.where(project_id: project_ids)
- @milestones = project_milestones
- @group_milestones = Milestones::GroupService.new(@group, current_user, project_milestones)
+ @group_milestones = Milestones::GroupService.new(project_milestones).execute
end
end