BigW Consortium Gitlab

attachment_uploader.rb 214 Bytes
Newer Older
gitlabhq committed
1 2 3
# encoding: utf-8

class AttachmentUploader < CarrierWave::Uploader::Base
4 5
  include UploaderHelper

gitlabhq committed
6 7 8
  storage :file

  def store_dir
9
    "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
gitlabhq committed
10 11
  end
end