summaryrefslogtreecommitdiffstats
path: root/app/controllers/wiki_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-12-09 16:54:46 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-12-09 16:54:46 +0000
commit5d2899ee1b3e00d0cf43521182b1244dfc3cfe9f (patch)
treeeb64711c0150fafb698da9d92eb0d6735a5461cf /app/controllers/wiki_controller.rb
parent2b6e332318a3e0a9489d20280010bb2d00206d95 (diff)
downloadredmine-5d2899ee1b3e00d0cf43521182b1244dfc3cfe9f.tar.gz
redmine-5d2899ee1b3e00d0cf43521182b1244dfc3cfe9f.zip
AttachmentsController now handles attachments deletion.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2116 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/wiki_controller.rb')
-rw-r--r--app/controllers/wiki_controller.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb
index 04bc33a82..221f4aa81 100644
--- a/app/controllers/wiki_controller.rb
+++ b/app/controllers/wiki_controller.rb
@@ -20,7 +20,7 @@ require 'diff'
class WikiController < ApplicationController
before_filter :find_wiki, :authorize
- verify :method => :post, :only => [:destroy, :destroy_attachment, :protect], :redirect_to => { :action => :index }
+ verify :method => :post, :only => [:destroy, :protect], :redirect_to => { :action => :index }
helper :attachments
include AttachmentsHelper
@@ -187,13 +187,6 @@ class WikiController < ApplicationController
redirect_to :action => 'index', :page => @page.title
end
- def destroy_attachment
- @page = @wiki.find_page(params[:page])
- return render_403 unless editable?
- @page.attachments.find(params[:attachment_id]).destroy
- redirect_to :action => 'index', :page => @page.title
- end
-
private
def find_wiki