Class: Ecom::Core::TaskAttachmentUploader

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

Instance Method Summary collapse

Instance Method Details

#store_dirObject



6
7
8
# File 'app/uploaders/ecom/core/task_attachment_uploader.rb', line 6

def store_dir
  "#{ENV.fetch('UPLOAD_PREFIX')}uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
end