parent
4bc625166e
commit
d3a62d2637
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue