Class: Hyrax::UploadedFileUploader

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

Instance Method Summary collapse

Instance Method Details

#cache_dirObject



9
10
11
# File 'app/uploaders/hyrax/uploaded_file_uploader.rb', line 9

def cache_dir
  configured_cache_path + "#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
end

#store_dirObject

Override the directory where uploaded files will be stored. This is a sensible default for uploaders that are meant to be mounted:



5
6
7
# File 'app/uploaders/hyrax/uploaded_file_uploader.rb', line 5

def store_dir
  configured_upload_path + "#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
end