Class: Archangel::LogoUploader
- Inherits:
-
ApplicationUploader
- Object
- CarrierWave::Uploader::Base
- ApplicationUploader
- Archangel::LogoUploader
- Defined in:
- app/uploaders/archangel/logo_uploader.rb
Overview
Logo uploader
Instance Method Summary collapse
-
#default_path ⇒ String
Uploaded path for file.
-
#filename ⇒ String
Uploaded file name.
Methods inherited from ApplicationUploader
#default_url, #extension_whitelist, #image?, #store_dir
Instance Method Details
#default_path ⇒ String
Uploaded path for file
31 32 33 |
# File 'app/uploaders/archangel/logo_uploader.rb', line 31 def default_path "archangel/fallback/" + [version_name, "logo.png"].compact.join("_") end |
#filename ⇒ String
Uploaded file name
40 41 42 |
# File 'app/uploaders/archangel/logo_uploader.rb', line 40 def filename "logo.#{file.extension}" if original_filename.present? end |