Fix #6525: Make sure file is opened in LazyThumbnail processor (#6529)

This commit is contained in:
Eugen Rochko
2018-02-22 00:28:19 +01:00
committed by GitHub
parent 4bc625166e
commit d3a62d2637
3 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
module Paperclip
class LazyThumbnail < Paperclip::Thumbnail
def make
return @file unless needs_convert?
return File.open(@file.path) unless needs_convert?
Paperclip::Thumbnail.make(file, options, attachment)
end