Module: CarrierWave::Uploader::DefaultUrl

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

Instance Method Summary collapse

Instance Method Details

#default_url(*args) ⇒ Object

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


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

def default_url(*args); end

#url(*args) ⇒ Object


5
6
7
# File 'lib/carrierwave/uploader/default_url.rb', line 5

def url(*args)
  super || default_url(*args)
end