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,