summaryrefslogtreecommitdiff
path: root/app/models/dashboard_group_milestone.rb
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2019-01-02 21:17:16 +0000
committerMike Greiling <mike@pixelcog.com>2019-01-02 21:17:16 +0000
commita4833f6fe0b725a4ee312367a311ec075352fba2 (patch)
treec256680bd3dccff2c8407cfda57c96b07c760136 /app/models/dashboard_group_milestone.rb
parent2d7c3dbf5c768ecddff9b6c1c897357ab2b923ff (diff)
parente9ef02096be859e31c155174fe2784d8a7ba73e3 (diff)
downloadgitlab-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.rb20
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