2018-11-18 11:00:15 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-11-03 12:29:30 +05:30
|
|
|
module Boards
|
|
|
|
module Lists
|
2018-03-17 18:26:18 +05:30
|
|
|
class ListService < Boards::BaseService
|
2016-11-03 12:29:30 +05:30
|
|
|
def execute(board)
|
2017-09-10 17:25:29 +05:30
|
|
|
board.lists.create(list_type: :backlog) unless board.lists.backlog.exists?
|
|
|
|
|
2020-01-01 13:55:28 +05:30
|
|
|
board.lists.preload_associated_models
|
2016-11-03 12:29:30 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2019-12-04 20:38:33 +05:30
|
|
|
|
|
|
|
Boards::Lists::ListService.prepend_if_ee('EE::Boards::Lists::ListService')
|