gitlab-org--gitlab-foss/app/services/boards/destroy_service.rb
Alexandru Croitor 0f6c42c5ce Move Multiple Issue Boards for Projects to Core
Refactor code to allow multiple issue boards management for projects
in CE
2019-06-26 12:28:00 +03:00

11 lines
198 B
Ruby

# frozen_string_literal: true
module Boards
class DestroyService < Boards::BaseService
def execute(board)
return false if parent.boards.size == 1
board.destroy
end
end
end