about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-02-22 00:28:19 +0100
committerGitHub <noreply@github.com>2018-02-22 00:28:19 +0100
commitd3a62d263703142250d7d59335394a8e2a599ed4 (patch)
treeb0ff6caa8e1ea2685ce72227e75b5ddac906774d /lib
parent4bc625166e381da15aea667b968e186c11be0217 (diff)
Fix #6525: Make sure file is opened in LazyThumbnail processor (#6529)
Diffstat (limited to 'lib')
-rw-r--r--lib/paperclip/lazy_thumbnail.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/paperclip/lazy_thumbnail.rb b/lib/paperclip/lazy_thumbnail.rb
index 594f0ce39..42f9a557a 100644
--- a/lib/paperclip/lazy_thumbnail.rb
+++ b/lib/paperclip/lazy_thumbnail.rb
@@ -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