gitlab-org--gitlab-foss/app/uploaders/attachment_uploader.rb
2016-07-24 07:08:45 +02:00

9 lines
195 B
Ruby

class AttachmentUploader < CarrierWave::Uploader::Base
include UploaderHelper
storage :file
def store_dir
"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
end
end