##// END OF EJS Templates
Reverted r8007....
Jean-Philippe Lang -
r7888:7a68ae27b0cc
parent child
Show More
@@ -76,4 +76,11 class DocumentsController < ApplicationController
76 Mailer.deliver_attachments_added(attachments[:files]) if attachments.present? && attachments[:files].present? && Setting.notified_events.include?('document_added')
76 Mailer.deliver_attachments_added(attachments[:files]) if attachments.present? && attachments[:files].present? && Setting.notified_events.include?('document_added')
77 redirect_to :action => 'show', :id => @document
77 redirect_to :action => 'show', :id => @document
78 end
78 end
79
80 private
81 def find_project
82 @project = Project.find(params[:project_id])
83 rescue ActiveRecord::RecordNotFound
84 render_404
85 end
79 end
86 end
General Comments 0
You need to be logged in to leave comments. Login now