Module: CarrierWave::Uploader::DefaultUrl

Defined in:
lib/carrierwave/uploader/default_url.rb

Instance Method Summary collapse

Instance Method Details

#default_urlObject

Override this method in your uploader to provide a default url in case no file has been cached/stored yet.



15
# File 'lib/carrierwave/uploader/default_url.rb', line 15

def default_url; end

#url(*args) ⇒ Object



7
8
9
# File 'lib/carrierwave/uploader/default_url.rb', line 7

def url(*args)
  super || default_url
end