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

14 lines
264 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
module Milestones
class CreateService < Milestones::BaseService
def execute
milestone = project.milestones.new(params)
2016-06-02 11:05:42 +05:30
if milestone.save!
2014-09-02 18:07:02 +05:30
event_service.open_milestone(milestone, current_user)
end
milestone
end
end
end