Class: LogoUploader
- Inherits:
-
BaseUploader
- Object
- BaseUploader
- LogoUploader
- Defined in:
- app/uploaders/logo_uploader.rb
Instance Method Summary collapse
Instance Method Details
#default_url ⇒ Object
11 12 13 |
# File 'app/uploaders/logo_uploader.rb', line 11 def default_url File.join(host, DEFAULTS_BASE_PATH, "upload_image_thumb.png") end |
#filename ⇒ Object
7 8 9 |
# File 'app/uploaders/logo_uploader.rb', line 7 def filename "#{model.class.to_s.underscore}_logo.png" if present? end |