##// END OF EJS Templates
fix variable name confusion at AttachmentsController#thumbnail...
Toshi MARUYAMA -
r12901:c1f17037e4b5
parent child
Show More
@@ -61,9 +61,9 class AttachmentsController < ApplicationController
61 61 end
62 62
63 63 def thumbnail
64 if @attachment.thumbnailable? && thumbnail = @attachment.thumbnail(:size => params[:size])
65 if stale?(:etag => thumbnail)
66 send_file thumbnail,
64 if @attachment.thumbnailable? && tbnail = @attachment.thumbnail(:size => params[:size])
65 if stale?(:etag => tbnail)
66 send_file tbnail,
67 67 :filename => filename_for_content_disposition(@attachment.filename),
68 68 :type => detect_content_type(@attachment),
69 69 :disposition => 'inline'
General Comments 0
You need to be logged in to leave comments. Login now