gitlab-org--gitlab-foss/app/services/boards/list_service.rb
Douglas Barbosa Alexandre 478b3d64f8 Remove Boards::BaseService
2016-10-11 11:39:05 -03:00

14 lines
255 B
Ruby

module Boards
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