]> source.dussan.org Git - redmine.git/commitdiff
fix variable name confusion at AttachmentsController#thumbnail
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 8 Jun 2014 04:23:59 +0000 (04:23 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 8 Jun 2014 04:23:59 +0000 (04:23 +0000)
This is suggested by Rails team.
https://github.com/rails/rails/issues/15471#issuecomment-45419147

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

app/controllers/attachments_controller.rb

index 18f0e0d9e4a8afc774bc6fa3f69e220f2842ecc0..b7f856a1a25233ad48c272ac604a356cf18a3cac 100644 (file)
@@ -61,9 +61,9 @@ class AttachmentsController < ApplicationController
   end
 
   def thumbnail
-    if @attachment.thumbnailable? && thumbnail = @attachment.thumbnail(:size => params[:size])
-      if stale?(:etag => thumbnail)
-        send_file thumbnail,
+    if @attachment.thumbnailable? && tbnail = @attachment.thumbnail(:size => params[:size])
+      if stale?(:etag => tbnail)
+        send_file tbnail,
           :filename => filename_for_content_disposition(@attachment.filename),
           :type => detect_content_type(@attachment),
           :disposition => 'inline'