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

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/paperclip-5.1.0/lib/paperclip/io_adapters/http_url_proxy_adapter.rb
paperclip-5.1.0 lib/paperclip/io_adapters/http_url_proxy_adapter.rb
paperclip-5.0.0 lib/paperclip/io_adapters/http_url_proxy_adapter.rb
paperclip_jk-5.0.0.beta2 lib/paperclip/io_adapters/http_url_proxy_adapter.rb