attachment_uploader.rb 182 Bytes
Newer Older
1
class AttachmentUploader < GitlabUploader
2 3
  include UploaderHelper

gitlabhq's avatar
gitlabhq committed
4 5 6
  storage :file

  def store_dir
7
    "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
gitlabhq's avatar
gitlabhq committed
8 9
  end
end