@@ -61,9 +61,9 class AttachmentsController < ApplicationController | |||
|
61 | 61 | end |
|
62 | 62 | |
|
63 | 63 | def thumbnail |
|
64 |
if @attachment.thumbnailable? && t |
|
|
65 |
if stale?(:etag => t |
|
|
66 |
send_file t |
|
|
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