diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-10-26 15:59:20 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-10-26 15:59:20 +0000 |
commit | 70bf0706b2f7933f72cbd4daab8e43b0ac9de4e9 (patch) | |
tree | d16352cdf618416b29e864f1a8fb73b62a9f259d /app/controllers | |
parent | 17eab0f5f9ecec337380f3cf8232da2aa32a5d99 (diff) | |
download | redmine-70bf0706b2f7933f72cbd4daab8e43b0ac9de4e9.tar.gz redmine-70bf0706b2f7933f72cbd4daab8e43b0ac9de4e9.zip |
Refactor: convert WikiController#destroy to use HTTP DELETE
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4295 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/wiki_controller.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb index c7b866239..4f15d35a0 100644 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -36,7 +36,7 @@ class WikiController < ApplicationController before_filter :find_wiki, :authorize before_filter :find_existing_page, :only => [:rename, :protect, :history, :diff, :annotate, :add_attachment, :destroy] - verify :method => :post, :only => [:destroy, :protect], :redirect_to => { :action => :show } + verify :method => :post, :only => [:protect], :redirect_to => { :action => :show } helper :attachments include AttachmentsHelper @@ -172,7 +172,8 @@ class WikiController < ApplicationController @annotate = @page.annotate(params[:version]) render_404 unless @annotate end - + + verify :method => :delete, :only => [:destroy], :redirect_to => { :action => :show } # Removes a wiki page and its history # Children can be either set as root pages, removed or reassigned to another parent page def destroy |