debian-mirror-gitlab/app/uploaders/attachment_uploader.rb
2017-08-17 22:00:37 +05:30

10 lines
211 B
Ruby

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