summaryrefslogtreecommitdiff
path: root/app/models/dashboard_milestone.rb
blob: fd59b94b737a49c20c903dcc26d89721e6aa4d10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

class DashboardMilestone < GlobalMilestone
  attr_reader :project_name

  def initialize(milestone)
    super

    @project_name = milestone.project.full_name
  end

  def project_milestone?
    true
  end

  def merge_requests_enabled?
    project.merge_requests_enabled?
  end
end