diff options
author | Mike Greiling <mike@pixelcog.com> | 2019-01-02 21:17:16 +0000 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2019-01-02 21:17:16 +0000 |
commit | a4833f6fe0b725a4ee312367a311ec075352fba2 (patch) | |
tree | c256680bd3dccff2c8407cfda57c96b07c760136 /app/models/dashboard_group_milestone.rb | |
parent | 2d7c3dbf5c768ecddff9b6c1c897357ab2b923ff (diff) | |
parent | e9ef02096be859e31c155174fe2784d8a7ba73e3 (diff) | |
download | gitlab-ce-a4833f6fe0b725a4ee312367a311ec075352fba2.tar.gz |
Merge branch 'ccr/49289_milestone_link' into 'master'
Add project milestone link
Closes #49289
See merge request gitlab-org/gitlab-ce!22552
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 ad0bb55f0a7..9bcc95e35a5 100644 --- a/app/models/dashboard_group_milestone.rb +++ b/app/models/dashboard_group_milestone.rb @@ -6,7 +6,7 @@ class DashboardGroupMilestone < GlobalMilestone attr_reader :group_name def initialize(milestone) - super(milestone.title, Array(milestone)) + super @group_name = milestone.group.full_name end @@ -18,22 +18,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 |