debian-mirror-gitlab/app/models/dashboard_milestone.rb
2020-01-01 13:55:28 +05:30

19 lines
314 B
Ruby

# 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