AbstractAdapter wasn't delegating `binmode` or `binmode?` to the underlying @tempfile object. `binmode` is useful for cases where the Adapter object gets handed on to another library expecting an `IO` object holding image data. We ran into this with Prawn and people using `prawnto` in conjunction with Paperclip. Prawn wants to ensure the `IO` is in binmode for embedding the image data.
Name |
Last commit
|
Last Update |
---|---|---|
.. | ||
fixtures | Loading commit data... | |
io_adapters | Loading commit data... | |
matchers | Loading commit data... | |
storage | Loading commit data... | |
support | Loading commit data... | |
validators | Loading commit data... | |
attachment_definitions_test.rb | Loading commit data... | |
attachment_processing_test.rb | Loading commit data... | |
attachment_registry_test.rb | Loading commit data... | |
attachment_test.rb | Loading commit data... | |
content_type_detector_test.rb | Loading commit data... | |
database.yml | Loading commit data... | |
file_command_content_type_detector_test.rb | Loading commit data... | |
filename_cleaner_test.rb | Loading commit data... | |
generator_test.rb | Loading commit data... | |
geometry_detector_test.rb | Loading commit data... | |
geometry_parser_test.rb | Loading commit data... | |
geometry_test.rb | Loading commit data... | |
has_attached_file_test.rb | Loading commit data... | |
helper.rb | Loading commit data... | |
integration_test.rb | Loading commit data... | |
interpolations_test.rb | Loading commit data... | |
meta_class_test.rb | Loading commit data... | |
paperclip_missing_attachment_styles_test.rb | Loading commit data... | |
paperclip_test.rb | Loading commit data... | |
plural_cache_test.rb | Loading commit data... | |
processor_test.rb | Loading commit data... | |
rake_test.rb | Loading commit data... | |
schema_test.rb | Loading commit data... | |
style_test.rb | Loading commit data... | |
tempfile_factory_test.rb | Loading commit data... | |
thumbnail_test.rb | Loading commit data... | |
url_generator_test.rb | Loading commit data... | |
validators_test.rb | Loading commit data... |