diff options
author | Fatih Acet <acetfatih@gmail.com> | 2018-12-20 12:14:33 +0100 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2018-12-20 13:33:09 +0100 |
commit | e9ef02096be859e31c155174fe2784d8a7ba73e3 (patch) | |
tree | c839c271e35cd1474801ff20d90bf9be3a2135bf /app/models/dashboard_group_milestone.rb | |
parent | f7ac8041f7ba3639085c26b4185eda00fd54a6e7 (diff) | |
download | gitlab-ce-e9ef02096be859e31c155174fe2784d8a7ba73e3.tar.gz |
Add project milestone link to dashboard milestonesccr/49289_milestone_link
One of the steps to deprecate dashboard milestones.
Links do dashboard milestone are replaced with links for each
project milestone
Diffstat (limited to 'app/models/dashboard_group_milestone.rb')
-rw-r--r-- | app/models/dashboard_group_milestone.rb | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/app/models/dashboard_group_milestone.rb b/app/models/dashboard_group_milestone.rb index 32e8104125c..c06823184c2 100644 --- a/app/models/dashboard_group_milestone.rb +++ b/app/models/dashboard_group_milestone.rb @@ -7,7 +7,7 @@ class DashboardGroupMilestone < GlobalMilestone override :initialize def initialize(milestone) - super(milestone.title, Array(milestone)) + super @group_name = milestone.group.full_name end @@ -19,22 +19,4 @@ class DashboardGroupMilestone < GlobalMilestone .active .map { |m| new(m) } end - - override :group_milestone? - def group_milestone? - @first_milestone.group_milestone? - end - - override :milestoneish_ids - def milestoneish_ids - milestones.map(&:id) - end - - def group - @first_milestone.group - end - - def iid - @first_milestone.iid - end end |