debian-mirror-gitlab/app/services/boards/destroy_service.rb
2022-08-27 11:52:29 +05:30

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