gitlab-org--gitlab-foss/app/services/milestones/reopen_service.rb
2017-07-07 15:08:49 +00:00

11 lines
265 B
Ruby

module Milestones
class ReopenService < Milestones::BaseService
def execute(milestone)
if milestone.activate && milestone.is_project_milestone?
event_service.reopen_milestone(milestone, current_user)
end
milestone
end
end
end