gitlab-org--gitlab-foss/app/models/group_milestone.rb
2017-02-07 15:16:46 +01:00

19 lines
406 B
Ruby

class GroupMilestone < GlobalMilestone
attr_accessor :group
def self.build_collection(group, projects, params)
super(projects, params).each do |milestone|
milestone.group = group
end
end
def self.build(group, projects, title)
super(projects, title).tap do |milestone|
milestone&.group = group
end
end
def issues_finder_params
{ group_id: group.id }
end
end