debian-mirror-gitlab/app/services/milestones/reopen_service.rb
2018-03-17 18:26:18 +05:30

11 lines
262 B
Ruby

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