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

12 lines
187 B
Ruby
Raw Normal View History

module WikiPages
class DestroyService < WikiPages::BaseService
def execute(page)
if page&.delete
execute_hooks(page, 'delete')
end
page
end
end
end