diff options
author | Mark Fletcher <mark@gitlab.com> | 2016-12-20 16:32:43 +0300 |
---|---|---|
committer | Mark Fletcher <mark@gitlab.com> | 2017-02-14 09:37:11 +0300 |
commit | 1fc6f6cc7101a9c4dee694682a3533a5e4ba3447 (patch) | |
tree | eeaf44d516e95bab16028757e8c0810fc9ec0259 /app/controllers/projects/wikis_controller.rb | |
parent | a616b475b16fa2689ab09fee9bb9c79c24f8bb27 (diff) |
Execute web hooks for WikiPage delete operation
* Add a new DestroyService for Wiki Pages
* Alter WikiPagesController to use the new service
Diffstat (limited to 'app/controllers/projects/wikis_controller.rb')
-rw-r--r-- | app/controllers/projects/wikis_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/wikis_controller.rb b/app/controllers/projects/wikis_controller.rb index 0faa71c4d7d..2d8064c9878 100644 --- a/app/controllers/projects/wikis_controller.rb +++ b/app/controllers/projects/wikis_controller.rb @@ -84,7 +84,7 @@ class Projects::WikisController < Projects::ApplicationController def destroy @page = @project_wiki.find_page(params[:id]) - @page&.delete + WikiPages::DestroyService.new(@project, current_user).execute(@page) redirect_to( namespace_project_wiki_path(@project.namespace, @project, :home), |