Class: DownloadUploader

Inherits:
CarrierWave::Uploader::Base
  • Object
show all
Defined in:
app/uploaders/download_uploader.rb

Instance Method Summary collapse

Instance Method Details

#fog_attributesObject



8
9
10
# File 'app/uploaders/download_uploader.rb', line 8

def fog_attributes
  { 'Content-Disposition' => 'attachment' }
end

#store_dirObject



4
5
6
# File 'app/uploaders/download_uploader.rb', line 4

def store_dir
  "attachments/#{model.id}"
end