mirror of
https://github.com/redmine/redmine.git
synced 2026-03-04 11:31:31 +01: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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user