blob: a65a896e41e597394003888e50d217c7a5dfc9d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
# encoding: utf-8
class AttachmentUploader < CarrierWave::Uploader::Base
include UploaderHelper
storage :file
def store_dir
"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
end
end
|