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

12 lines
222 B
Ruby
Raw Normal View History

module Boards
module Lists
2016-10-07 15:46:32 -04:00
class ListService < BaseService
def execute(board)
2017-06-06 11:27:54 -04:00
board.lists.create(list_type: :backlog) unless board.lists.backlog.exists?
board.lists
end
end
end
end