2018-07-16 16:31:01 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-10-05 16:54:46 +00:00
|
|
|
module Boards
|
|
|
|
module Lists
|
2017-08-31 17:48:57 +00:00
|
|
|
class ListService < Boards::BaseService
|
2016-10-05 16:54:46 +00:00
|
|
|
def execute(board)
|
2017-06-06 15:27:54 +00:00
|
|
|
board.lists.create(list_type: :backlog) unless board.lists.backlog.exists?
|
2017-06-06 11:59:50 +00:00
|
|
|
|
2016-10-05 16:54:46 +00:00
|
|
|
board.lists
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|