Module: CarrierWave::Cloudflare::ClassMethods

Defined in:
lib/carrierwave/cloudflare.rb

Instance Method Summary collapse

Instance Method Details

#cdn_transform(**options) ⇒ Object



18
19
20
21
# File 'lib/carrierwave/cloudflare.rb', line 18

def cdn_transform(**options)
  opts = default_cdn_options.merge(options)
  self.version_options = version_options.merge(cdn_transform: opts)
end

#default_cdn_options(**defaults) ⇒ Object



23
24
25
26
27
# File 'lib/carrierwave/cloudflare.rb', line 23

def default_cdn_options(**defaults)
  return _default_cdn_options if defaults.empty?

  self._default_cdn_options = defaults
end