2014-06-10 11:07:52 -04:00
|
|
|
module Milestones
|
|
|
|
class ReopenService < Milestones::BaseService
|
|
|
|
def execute(milestone)
|
2014-06-10 12:22:39 -04:00
|
|
|
if milestone.activate
|
2014-06-10 11:07:52 -04:00
|
|
|
event_service.reopen_milestone(milestone, current_user)
|
|
|
|
end
|
|
|
|
|
|
|
|
milestone
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|