summaryrefslogtreecommitdiff
path: root/app/services/milestones/reopen_service.rb
blob: 3efb33157c5f838196f5ed2645d3122f4bb40c99 (plain)
1
2
3
4
5
6
7
8
9
10
11
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