Class: DownloadUploader
- Inherits:
-
CarrierWave::Uploader::Base
- Object
- CarrierWave::Uploader::Base
- DownloadUploader
- Defined in:
- app/uploaders/download_uploader.rb
Instance Method Summary collapse
Instance Method Details
#fog_attributes ⇒ Object
8 9 10 |
# File 'app/uploaders/download_uploader.rb', line 8 def fog_attributes { 'Content-Disposition' => 'attachment' } end |
#store_dir ⇒ Object
4 5 6 |
# File 'app/uploaders/download_uploader.rb', line 4 def store_dir "attachments/#{model.id}" end |