diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-08 01:37:25 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-08 01:37:25 +0000 |
commit | 2fc055571379a5a5c0209f78718e28830072aaa6 (patch) | |
tree | 51930d12514bbee3612c7248504833d32d06b2b2 /app/controllers | |
parent | c611a585ad80b144ead2c581827d3c38c6072ea8 (diff) | |
download | redmine-2fc055571379a5a5c0209f78718e28830072aaa6.tar.gz redmine-2fc055571379a5a5c0209f78718e28830072aaa6.zip |
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
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/attachments_controller.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index 5d705844b..a46e551bf 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -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 |