Enable Rubocop Style/StringConcatenation defaults (#23792)
This commit is contained in:
parent
7ecf783dd3
commit
0cfdd1a401
14 changed files with 25 additions and 44 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue