11 lines
333 B
Ruby
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
|