0
0
Fork 0

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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