diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-21 19:54:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-22 09:54:36 +0900 |
commit | 0cfdd1a401f055c23e308a4b823bd250b1cbb3d3 (patch) | |
tree | 35cd9c386409bc9a1ca917bb6201b0ba1af37896 /lib/paperclip/gif_transcoder.rb | |
parent | 7ecf783dd3bfc07f80aab495273b6d01ba972c40 (diff) |
Enable Rubocop Style/StringConcatenation defaults (#23792)
Diffstat (limited to 'lib/paperclip/gif_transcoder.rb')
-rw-r--r-- | lib/paperclip/gif_transcoder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/paperclip/gif_transcoder.rb b/lib/paperclip/gif_transcoder.rb index f385b00a3..32bdb8a86 100644 --- a/lib/paperclip/gif_transcoder.rb +++ b/lib/paperclip/gif_transcoder.rb @@ -109,7 +109,7 @@ module Paperclip final_file = Paperclip::Transcoder.make(file, options, attachment) if options[:style] == :original - attachment.instance.file_file_name = File.basename(attachment.instance.file_file_name, '.*') + '.mp4' + attachment.instance.file_file_name = "#{File.basename(attachment.instance.file_file_name, '.*')}.mp4" attachment.instance.file_content_type = 'video/mp4' attachment.instance.type = MediaAttachment.types[:gifv] end |