debian-mirror-gitlab/app/services/boards/lists/list_service.rb
2018-03-17 18:26:18 +05:30

11 lines
230 B
Ruby

module Boards
module Lists
class ListService < Boards::BaseService
def execute(board)
board.lists.create(list_type: :backlog) unless board.lists.backlog.exists?
board.lists
end
end
end
end