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

10 lines
288 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)
@milestones = project_milestones
end
end