Module: CarrierWave::Uploader::Base64Download
- Included in:
- Base
- Defined in:
- lib/locomotive/carrierwave/patches.rb
Defined Under Namespace
Classes: Base64StringIO
Instance Method Summary collapse
Instance Method Details
#download!(uri_or_base64, remote_headers = {}) ⇒ Object
63 64 65 66 67 68 69 70 |
# File 'lib/locomotive/carrierwave/patches.rb', line 63 def download!(uri_or_base64, remote_headers = {}) if uri_or_base64 =~ /\Adata:/ file = Base64StringIO.new(uri_or_base64) cache!(file) else download_without_base64!(uri_or_base64, remote_headers) end end |