diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2022-06-28 12:48:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-15 06:44:46 +0000 |
commit | bf851133aea61eb9734894c84327f8b1bb143d2b (patch) | |
tree | c1aacae20e7685fa2edfe8162dd951c8425b4d67 /lib/paperclip/gif_transcoder.rb | |
parent | 05e39dc6199c609d200d546fed8a6a560659aa06 (diff) | |
download | mastodon-rubocop-fixes.tar mastodon-rubocop-fixes.tar.gz mastodon-rubocop-fixes.tar.bz2 mastodon-rubocop-fixes.zip |
Fix all rubocop warningsrubocop-fixes
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 d14465c01..c28a48a05 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 |