@@ -61,9 +61,9 class AttachmentsController < ApplicationController | |||||
61 | end |
|
61 | end | |
62 |
|
62 | |||
63 | def thumbnail |
|
63 | def thumbnail | |
64 |
if @attachment.thumbnailable? && t |
|
64 | if @attachment.thumbnailable? && tbnail = @attachment.thumbnail(:size => params[:size]) | |
65 |
if stale?(:etag => t |
|
65 | if stale?(:etag => tbnail) | |
66 |
send_file t |
|
66 | send_file tbnail, | |
67 | :filename => filename_for_content_disposition(@attachment.filename), |
|
67 | :filename => filename_for_content_disposition(@attachment.filename), | |
68 | :type => detect_content_type(@attachment), |
|
68 | :type => detect_content_type(@attachment), | |
69 | :disposition => 'inline' |
|
69 | :disposition => 'inline' |
General Comments 0
You need to be logged in to leave comments.
Login now