Class: Decidim::Cw::DownloadYourDataUploader
- Inherits:
-
ApplicationUploader
- Object
- CarrierWave::Uploader::Base
- ApplicationUploader
- Decidim::Cw::DownloadYourDataUploader
- Defined in:
- app/uploaders/decidim/cw/download_your_data_uploader.rb
Overview
This class deals with saving download your data Zip Files to App
Instance Attribute Summary
Attributes inherited from ApplicationUploader
Instance Method Summary collapse
-
#store_dir ⇒ Object
Override the directory where uploaded files will be stored.
Methods inherited from ApplicationUploader
#downloader, #provider, set_variants, #variant, variants
Instance Method Details
#store_dir ⇒ Object
Override the directory where uploaded files will be stored.
7 8 9 10 11 12 13 |
# File 'app/uploaders/decidim/cw/download_your_data_uploader.rb', line 7 def store_dir default_path = "uploads/download-your-data/" return File.join(Decidim.base_uploads_path, default_path) if Decidim.base_uploads_path.present? default_path end |