Browse Source

cleanup: rubocop: fix Layout/AlignArguments in app/controllers/attachments_controller.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18941 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.1.0
Toshi MARUYAMA 4 years ago
parent
commit
2fc0555713
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      app/controllers/attachments_controller.rb

+ 3
- 2
app/controllers/attachments_controller.rb View File

@@ -81,10 +81,11 @@ class AttachmentsController < ApplicationController
def thumbnail
if @attachment.thumbnailable? && tbnail = @attachment.thumbnail(:size => params[:size])
if stale?(:etag => tbnail)
send_file tbnail,
send_file(
tbnail,
:filename => filename_for_content_disposition(@attachment.filename),
:type => detect_content_type(@attachment, true),
:disposition => 'inline'
:disposition => 'inline')
end
else
# No thumbnail for the attachment or thumbnail could not be created

Loading…
Cancel
Save