Sha256: a591391c648da8e897b98be209f86214f2e96272a7c1171ec01c41d0924bca18
Contents?: true
Size: 323 Bytes
Versions: 4
Compression:
Stored size: 323 Bytes
Contents
module Paperclip class HttpUrlProxyAdapter < UriAdapter REGEXP = /\Ahttps?:\/\// def initialize(target) super(URI(URI.escape(target))) end end end Paperclip.io_adapters.register Paperclip::HttpUrlProxyAdapter do |target| String === target && target =~ Paperclip::HttpUrlProxyAdapter::REGEXP end
Version data entries
4 entries across 4 versions & 3 rubygems