module Paperclip::TempfileEncoding
Public Instance Methods
binmode()
click to toggle source
This overrides Tempfile#binmode to make sure that the extenal encoding for binary mode is ASCII-8BIT. This behavior is what's in CRuby, but not in JRuby
Calls superclass method
# File lib/paperclip/tempfile.rb, line 34 def binmode set_encoding('ASCII-8BIT') super end