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

14 lines
260 B
Ruby

module Boards
class ListService < Boards::BaseService
def execute
create_board! if parent.boards.empty?
parent.boards
end
private
def create_board!
Boards::CreateService.new(parent, current_user).execute
end
end
end