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

15 lines
255 B
Ruby
Raw Normal View History

module Boards
2016-10-07 15:46:32 -04:00
class ListService < BaseService
def execute
create_board! if project.boards.empty?
project.boards
end
private
def create_board!
Boards::CreateService.new(project, current_user).execute
end
end
end