about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2017-10-26 09:18:27 -0500
committerDavid Yip <yipdw@member.fsf.org>2017-10-26 09:18:27 -0500
commitdd28b94cf0ed1ed3b2d75fddb27fc4373298d659 (patch)
tree96e2517363e43e7d435bc1204b97e4769d5a3e20 /lib
parenta2612d0d3865fbbd6e8a93572f6d4e4044a8d64b (diff)
parentd556be2968641c265360297fd268a24119c68670 (diff)
Merge remote-tracking branch 'origin/master' into gs-master
Diffstat (limited to 'lib')
-rw-r--r--lib/paperclip/gif_transcoder.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/paperclip/gif_transcoder.rb b/lib/paperclip/gif_transcoder.rb
index cbe53b27b..629e37581 100644
--- a/lib/paperclip/gif_transcoder.rb
+++ b/lib/paperclip/gif_transcoder.rb
@@ -10,6 +10,7 @@ module Paperclip
       unless options[:style] == :original && num_frames > 1
         tmp_file = Paperclip::TempfileFactory.new.generate(attachment.instance.file_file_name)
         tmp_file << file.read
+        tmp_file.flush
         return tmp_file
       end