diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-02-10 16:21:39 +0100 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-01-31 22:53:57 +0000 |
commit | e5e2e7b70315cbcee12db66ebc73dbd0ef4a14ae (patch) | |
tree | 0976d8d1c957c712ca170fb129db42d88408aab5 /app/controllers/projects/pages_controller.rb | |
parent | 13b6bad17ec46eb78878f6972da1e7e34be86bb5 (diff) | |
download | gitlab-ce-e5e2e7b70315cbcee12db66ebc73dbd0ef4a14ae.tar.gz |
Fix the remove_pages
Diffstat (limited to 'app/controllers/projects/pages_controller.rb')
-rw-r--r-- | app/controllers/projects/pages_controller.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/projects/pages_controller.rb b/app/controllers/projects/pages_controller.rb index 82814afe196..0c7f2bd5784 100644 --- a/app/controllers/projects/pages_controller.rb +++ b/app/controllers/projects/pages_controller.rb @@ -51,6 +51,11 @@ class Projects::PagesController < Projects::ApplicationController end end + def remove_pages + project.remove_pages + project.pages_domains.destroy_all + end + private def pages_domain_params |