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

17 lines
240 B
Ruby

# frozen_string_literal: true
module Boards
class DestroyService < Boards::BaseService
def execute(board)
board.destroy!
ServiceResponse.success
end
private
def boards
parent.boards
end
end
end