Class: Paperclip::HttpUrlProxyAdapter

Inherits:
UriAdapter show all
Defined in:
lib/paperclip/io_adapters/http_url_proxy_adapter.rb

Constant Summary collapse

REGEXP =
/\Ahttps?:\/\//

Constants inherited from AbstractAdapter

AbstractAdapter::OS_RESTRICTED_CHARACTERS

Instance Attribute Summary

Attributes inherited from UriAdapter

#content_type

Attributes inherited from AbstractAdapter

#content_type, #original_filename, #size

Instance Method Summary collapse

Methods inherited from AbstractAdapter

#assignment?, #fingerprint, #inspect, #nil?, #read

Constructor Details

#initialize(target) ⇒ HttpUrlProxyAdapter

Returns a new instance of HttpUrlProxyAdapter.



6
7
8
# File 'lib/paperclip/io_adapters/http_url_proxy_adapter.rb', line 6

def initialize(target)
  super(URI(URI.escape(target)))
end