BigW Consortium Gitlab

attachment_uploader.rb 211 Bytes
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