1 2 3 4 5 6 7 8 9 10
module Ci class CreatePipelineStagesService < BaseService def execute(pipeline) pipeline.stage_seeds.each do |seed| seed.user = current_user seed.create! end end end end