debian-mirror-gitlab/app/services/projects/group_links/destroy_service.rb
2019-12-04 20:38:33 +05:30

15 lines
327 B
Ruby

# frozen_string_literal: true
module Projects
module GroupLinks
class DestroyService < BaseService
def execute(group_link)
return false unless group_link
group_link.destroy
end
end
end
end
Projects::GroupLinks::DestroyService.prepend_if_ee('EE::Projects::GroupLinks::DestroyService')