]> source.dussan.org Git - redmine.git/commitdiff
Remove extra call of Attachment#thumbnailable? in AttachmentsController#thumbnail...
authorGo MAEDA <maeda@farend.jp>
Tue, 30 Aug 2022 08:02:03 +0000 (08:02 +0000)
committerGo MAEDA <maeda@farend.jp>
Tue, 30 Aug 2022 08:02:03 +0000 (08:02 +0000)
Patch by Go MAEDA.

git-svn-id: https://svn.redmine.org/redmine/trunk@21790 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/attachments_controller.rb

index aa8bbeec91f9dc39d68b1d3e36f5a6ab1e62b36b..612e070d2e1fe7ac7429d54bca4e48a5637e18be 100644 (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,