2011-10-08 17:36:38 -04:00
|
|
|
class AttachmentUploader < CarrierWave::Uploader::Base
|
2015-11-14 13:29:58 -05:00
|
|
|
include UploaderHelper
|
|
|
|
|
2011-10-08 17:36:38 -04:00
|
|
|
storage :file
|
|
|
|
|
|
|
|
def store_dir
|
2015-02-19 11:57:35 -05:00
|
|
|
"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
|
2011-10-08 17:36:38 -04:00
|
|
|
end
|
|
|
|
end
|