blob: 109eb2fea0b5750a2079ed7998a049c090ecbc8b (
plain)
1
2
3
4
5
6
7
8
9
10
|
class AttachmentUploader < GitlabUploader
include RecordsUploads
include UploaderHelper
storage :file
def store_dir
"#{base_dir}/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
end
end
|