gitlab-org--gitlab-foss/app/services/boards/lists/list_service.rb

14 lines
282 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Boards
module Lists
2017-08-31 13:48:57 -04:00
class ListService < Boards::BaseService
def execute(board)
2017-06-06 11:27:54 -04:00
board.lists.create(list_type: :backlog) unless board.lists.backlog.exists?
2018-09-10 13:26:33 -04:00
board.lists.preload_associations
end
end
end
end