mirror of
https://github.com/meineerde/redmine.git
synced 2025-10-17 17:01:01 +00:00
fix variable name confusion at AttachmentsController#thumbnail
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
This commit is contained in:
parent
80ba11a029
commit
c1f17037e4
@ -61,9 +61,9 @@ class AttachmentsController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def thumbnail
|
def thumbnail
|
||||||
if @attachment.thumbnailable? && thumbnail = @attachment.thumbnail(:size => params[:size])
|
if @attachment.thumbnailable? && tbnail = @attachment.thumbnail(:size => params[:size])
|
||||||
if stale?(:etag => thumbnail)
|
if stale?(:etag => tbnail)
|
||||||
send_file thumbnail,
|
send_file tbnail,
|
||||||
:filename => filename_for_content_disposition(@attachment.filename),
|
:filename => filename_for_content_disposition(@attachment.filename),
|
||||||
:type => detect_content_type(@attachment),
|
:type => detect_content_type(@attachment),
|
||||||
:disposition => 'inline'
|
:disposition => 'inline'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user