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

12 lines
214 B
Ruby
Raw Normal View History

2011-10-08 17:36:38 -04:00
# encoding: utf-8
class AttachmentUploader < CarrierWave::Uploader::Base
include UploaderHelper
2011-10-08 17:36:38 -04:00
storage :file
def store_dir
"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
2011-10-08 17:36:38 -04:00
end
end