diff options
| author | Marin Jankovski <marin@gitlab.com> | 2014-06-26 10:57:36 +0200 |
|---|---|---|
| committer | Marin Jankovski <marin@gitlab.com> | 2014-06-30 09:44:30 +0200 |
| commit | 0723bf1afaaf13ddcb58c211161389052d18e501 (patch) | |
| tree | e9bcbbe629ade11a0c8eec61b4023a7531da05ad /app/controllers/groups | |
| parent | 8e8c074205f4c85238309f4e21e80748f09d0ec8 (diff) | |
| download | gitlab-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.rb | 3 |
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 |
