0f6c42c5ce
Refactor code to allow multiple issue boards management for projects in CE
11 lines
198 B
Ruby
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
|