2018-07-17 12:50:37 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2014-06-10 11:07:52 -04:00
|
|
|
module Milestones
|
|
|
|
class ReopenService < Milestones::BaseService
|
|
|
|
def execute(milestone)
|
2017-08-24 12:37:37 -04:00
|
|
|
if milestone.activate && milestone.project_milestone?
|
2014-06-10 11:07:52 -04:00
|
|
|
event_service.reopen_milestone(milestone, current_user)
|
|
|
|
end
|
|
|
|
|
|
|
|
milestone
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|