2016-10-05 12:54:46 -04:00
|
|
|
module Boards
|
|
|
|
module Lists
|
2016-10-07 15:46:32 -04:00
|
|
|
class ListService < 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
|