Reverted r8007.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8008 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2011-11-30 19:02:40 +00:00
parent 33e25255e3
commit 7a68ae27b0
1 changed files with 7 additions and 0 deletions

View File

@ -76,4 +76,11 @@ class DocumentsController < ApplicationController
Mailer.deliver_attachments_added(attachments[:files]) if attachments.present? && attachments[:files].present? && Setting.notified_events.include?('document_added')
redirect_to :action => 'show', :id => @document
end
private
def find_project
@project = Project.find(params[:project_id])
rescue ActiveRecord::RecordNotFound
render_404
end
end