gitlab-org--gitlab-foss/app/services/milestones/reopen_service.rb
Dmitriy Zaporozhets d65bf4605e
Fix milestone reopen
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-10 19:22:39 +03:00

11 lines
230 B
Ruby

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