2018-07-25 05:30:33 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-01-13 10:12:27 -05:00
|
|
|
class DashboardMilestone < GlobalMilestone
|
2018-12-20 06:14:33 -05:00
|
|
|
attr_reader :project_name
|
|
|
|
|
|
|
|
def initialize(milestone)
|
|
|
|
super
|
|
|
|
|
|
|
|
@project_name = milestone.project.full_name
|
2017-01-13 10:12:27 -05:00
|
|
|
end
|
2017-07-07 11:08:49 -04:00
|
|
|
|
2018-12-20 06:14:33 -05:00
|
|
|
def project_milestone?
|
2017-07-07 11:08:49 -04:00
|
|
|
true
|
|
|
|
end
|
2019-12-03 13:06:49 -05:00
|
|
|
|
|
|
|
def merge_requests_enabled?
|
|
|
|
project.merge_requests_enabled?
|
|
|
|
end
|
2017-01-13 10:12:27 -05:00
|
|
|
end
|