debian-mirror-gitlab/app/services/wiki_pages/destroy_service.rb
2017-08-17 22:00:37 +05:30

11 lines
187 B
Ruby

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