summaryrefslogtreecommitdiffstats
path: root/app/controllers/wiki_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-03 15:09:20 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-03 15:09:20 +0000
commitb3866b05c14bd0f1fff4c54051f522e03e2bec36 (patch)
treec7248ef2b6cd4d22ec7bfaae11cf6815afdc8f64 /app/controllers/wiki_controller.rb
parentbf8f8545461e5aeb1d2b1ddc1b4bf861ee5c2f9c (diff)
downloadredmine-b3866b05c14bd0f1fff4c54051f522e03e2bec36.tar.gz
redmine-b3866b05c14bd0f1fff4c54051f522e03e2bec36.zip
Removes all #verify calls in controllers. Verification is handled at routing level now that the default route is removed.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9061 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/wiki_controller.rb')
-rw-r--r--app/controllers/wiki_controller.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb
index 28d0d44b1..2f851aec9 100644
--- a/app/controllers/wiki_controller.rb
+++ b/app/controllers/wiki_controller.rb
@@ -118,7 +118,6 @@ class WikiController < ApplicationController
end
end
- verify :method => :put, :only => :update, :render => {:nothing => true, :status => :method_not_allowed }
# Creates a new page or updates an existing one
def update
return render_403 unless editable?
@@ -178,7 +177,6 @@ class WikiController < ApplicationController
end
end
- verify :method => :post, :only => :protect, :redirect_to => { :action => :show }
def protect
@page.update_attribute :protected, params[:protected]
redirect_to :action => 'show', :project_id => @project, :id => @page.title
@@ -208,7 +206,6 @@ class WikiController < ApplicationController
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