debian-mirror-gitlab/app/services/boards/destroy_service.rb
2019-09-30 21:07:59 +05:30

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