2017-01-06 07:47:18 -05:00
|
|
|
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|
|
2017-02-07 09:16:46 -05:00
|
|
|
milestone&.group = group
|
2017-01-06 07:47:18 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def issues_finder_params
|
|
|
|
{ group_id: group.id }
|
|
|
|
end
|
2017-07-07 11:08:49 -04:00
|
|
|
|
|
|
|
def is_legacy_group_milestone?
|
|
|
|
true
|
|
|
|
end
|
2017-01-06 07:47:18 -05:00
|
|
|
end
|