Merge pull request #6270 from Matt-Yorkley/paperclip-handlers

Remove Paperclip URL handlers
This commit is contained in:
Matt-Yorkley
2020-11-05 18:29:20 +01:00
committed by GitHub

View File

@@ -1,3 +1,14 @@
Paperclip::Attachment.default_options[:source_file_options] = {
all: "-auto-orient"
}
url_adapters = [
"Paperclip::UriAdapter",
"Paperclip::HttpUrlProxyAdapter",
"Paperclip::DataUriAdapter"
]
# Remove Paperclip URL adapters from registered handlers
Paperclip.io_adapters.registered_handlers.delete_if do |_proc, adapter_class|
url_adapters.include? adapter_class.to_s
end