summaryrefslogtreecommitdiffstats
path: root/app/controllers/documents_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-22 17:20:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-22 17:20:02 +0000
commit8a7bfc72b20a0a554812db7f8bb7bfdf3e2a21d4 (patch)
tree0c7d861eb6d8cdcb32b4dd4c91e8c7c3f91faa37 /app/controllers/documents_controller.rb
parentaaca2c50e563287f16cbce230ddbcc5d4e6dc972 (diff)
downloadredmine-8a7bfc72b20a0a554812db7f8bb7bfdf3e2a21d4.tar.gz
redmine-8a7bfc72b20a0a554812db7f8bb7bfdf3e2a21d4.zip
Move VersionsController#download to AttachmentsController.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1685 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/documents_controller.rb')
-rw-r--r--app/controllers/documents_controller.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/app/controllers/documents_controller.rb b/app/controllers/documents_controller.rb
index 7e732b9b6..1f0784bb2 100644
--- a/app/controllers/documents_controller.rb
+++ b/app/controllers/documents_controller.rb
@@ -65,15 +65,6 @@ class DocumentsController < ApplicationController
@document.destroy
redirect_to :controller => 'documents', :action => 'index', :project_id => @project
end
-
- def download
- @attachment = @document.attachments.find(params[:attachment_id])
- @attachment.increment_download
- send_file @attachment.diskfile, :filename => filename_for_content_disposition(@attachment.filename),
- :type => @attachment.content_type
- rescue
- render_404
- end
def add_attachment
attachments = attach_files(@document, params[:attachments])