blob: 11e038f9327726338d45bd07aacff64289242b25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
class AttachmentUploader < GitlabUploader
include RecordsUploads::Concern
include ObjectStorage::Concern
prepend ObjectStorage::Extension::RecordsUploads
private
def dynamic_segment
File.join(model.class.to_s.underscore, mounted_as.to_s, model.id.to_s)
end
end
|