1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-01 03:57:15 +00:00

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
This commit is contained in:
Go MAEDA 2022-08-30 08:02:03 +00:00
parent de4e75ef62
commit 59841e5b68

View File

@ -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,