9 lines
182 B
Ruby
9 lines
182 B
Ruby
class AttachmentUploader < GitlabUploader
|
|
include UploaderHelper
|
|
|
|
storage :file
|
|
|
|
def store_dir
|
|
"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
|
|
end
|
|
end
|