Class: Decidim::Cw::Votings::Census::VotingCensusUploader
- Inherits:
-
ApplicationUploader
- Object
- ApplicationUploader
- Decidim::Cw::Votings::Census::VotingCensusUploader
- Defined in:
- app/uploaders/decidim/cw/votings/census/voting_census_uploader.rb
Overview
This class deals with saving voting cenusus access codes export Zip Files to App
Instance Method Summary collapse
-
#store_dir ⇒ Object
Override the directory where uploaded files will be stored.
Instance Method Details
#store_dir ⇒ Object
Override the directory where uploaded files will be stored.
9 10 11 12 13 14 15 |
# File 'app/uploaders/decidim/cw/votings/census/voting_census_uploader.rb', line 9 def store_dir default_path = "uploads/voting-census/" return File.join(Decidim.base_uploads_path, default_path) if Decidim.base_uploads_path.present? default_path end |