gitlab-org--gitlab-foss/app/controllers/groups/milestones_controller.rb
2014-06-30 09:44:30 +02:00

11 lines
333 B
Ruby

class Groups::MilestonesController < ApplicationController
layout 'group'
def index
@group = Group.find_by(path: params[:group_id])
project_ids = @group.projects
project_milestones = Milestone.where(project_id: project_ids)
@group_milestones = Milestones::GroupService.new(project_milestones).execute
end
end