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