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