Module: Paperclip::TempfileEncoding
- Defined in:
- lib/paperclip/tempfile.rb
Instance Method Summary collapse
-
#binmode ⇒ Object
This overrides Tempfile#binmode to make sure that the extenal encoding for binary mode is ASCII-8BIT.
Instance Method Details
#binmode ⇒ Object
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
32 33 34 35 |
# File 'lib/paperclip/tempfile.rb', line 32 def binmode set_encoding('ASCII-8BIT') super end |