2016-08-18 10:31:44 -04:00
|
|
|
class AttachmentUploader < GitlabUploader
|
2015-11-14 13:29:58 -05:00
|
|
|
include UploaderHelper
|
2018-01-29 12:57:34 -05:00
|
|
|
include RecordsUploads::Concern
|
2015-11-14 13:29:58 -05:00
|
|
|
|
2011-10-08 17:36:38 -04:00
|
|
|
storage :file
|
|
|
|
|
2018-01-29 12:57:34 -05:00
|
|
|
private
|
|
|
|
|
|
|
|
def dynamic_segment
|
|
|
|
File.join(model.class.to_s.underscore, mounted_as.to_s, model.id.to_s)
|
2011-10-08 17:36:38 -04:00
|
|
|
end
|
|
|
|
end
|