Merge pull request #25 from insales/fix_thumbnail_with_explicit_format

Явное указание формата не работало
This commit is contained in:
Dmitry Borisov
2019-04-15 09:22:20 +03:00
committed by GitHub

View File

@@ -39,7 +39,8 @@ module Paperclip
# that contains the new image.
def make
src = @file
dst = Tempfile.new([@basename, @format].compact.join("."))
ext = @format.present? ? ".#{@format}" : nil
dst = Tempfile.new([@basename, ext])
dst.binmode
command = <<-end_command