Class: DocumentBundleUploader

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

Instance Method Summary collapse

Instance Method Details

#fog_attributesObject



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

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

#store_dirObject



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

def store_dir
  "bundles/#{model.resource_id}/#{model.category}"
end