diff options
author | Go MAEDA <maeda@farend.jp> | 2022-08-30 08:02:03 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2022-08-30 08:02:03 +0000 |
commit | 59841e5b681323837f975e03b4be8cd0bbc4bc97 (patch) | |
tree | e126c3d35aa0be96b2014389f019b38931a40b69 /app | |
parent | de4e75ef62942b6c1c0cbc91268f02841bb9c38d (diff) | |
download | redmine-59841e5b681323837f975e03b4be8cd0bbc4bc97.tar.gz redmine-59841e5b681323837f975e03b4be8cd0bbc4bc97.zip |
Remove extra call of Attachment#thumbnailable? in AttachmentsController#thumbnail (#37599).
Patch by Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@21790 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/attachments_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index aa8bbeec9..612e070d2 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -83,7 +83,7 @@ class AttachmentsController < ApplicationController end def thumbnail - if @attachment.thumbnailable? && tbnail = @attachment.thumbnail(:size => params[:size]) + if (tbnail = @attachment.thumbnail(:size => params[:size])) if stale?(:etag => tbnail, :template => false) send_file( tbnail, |