gitlab-org--gitlab-foss/app/uploaders/attachment_uploader.rb

15 lines
330 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2016-08-18 10:31:44 -04:00
class AttachmentUploader < GitlabUploader
include RecordsUploads::Concern
include ObjectStorage::Concern
prepend ObjectStorage::Extension::RecordsUploads
2018-03-02 16:19:17 -05:00
include UploaderHelper
private
2011-10-08 17:36:38 -04:00
def dynamic_segment
File.join(model.class.underscore, mounted_as.to_s, model.id.to_s)
2011-10-08 17:36:38 -04:00
end
end