summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-04 14:44:30 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-04 14:44:30 +0000
commite7f6297e7c0096b165e793662800832a93c506a5 (patch)
tree186e90b47ba2bae0dff4415eb7b62bd7dcf7571c /app/controllers
parent3dcc8521f2ae9b6a8390f4a5b4da4f2e73dc6e01 (diff)
downloadredmine-e7f6297e7c0096b165e793662800832a93c506a5.tar.gz
redmine-e7f6297e7c0096b165e793662800832a93c506a5.zip
add empty line after guard clause to AttachmentsController
git-svn-id: http://svn.redmine.org/redmine/trunk@20253 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/attachments_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb
index f493177ec..f47da554e 100644
--- a/app/controllers/attachments_controller.rb
+++ b/app/controllers/attachments_controller.rb
@@ -207,6 +207,7 @@ class AttachmentsController < ApplicationController
@attachment = Attachment.find(params[:id])
# Show 404 if the filename in the url is wrong
raise ActiveRecord::RecordNotFound if params[:filename] && params[:filename] != @attachment.filename
+
@project = @attachment.project
rescue ActiveRecord::RecordNotFound
render_404