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

11 lines
257 B
Ruby

module Milestones
class CloseService < Milestones::BaseService
def execute(milestone)
if milestone.close && milestone.project_milestone?
event_service.close_milestone(milestone, current_user)
end
milestone
end
end
end