debian-mirror-gitlab/app/services/milestones/close_service.rb

12 lines
260 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
module Milestones
class CloseService < Milestones::BaseService
def execute(milestone)
2017-09-10 17:25:29 +05:30
if milestone.close && milestone.is_project_milestone?
2014-09-02 18:07:02 +05:30
event_service.close_milestone(milestone, current_user)
end
milestone
end
end
end