Welcome to mirror list, hosted at ThFree Co, Russian Federation.

attachment_uploader.rb « uploaders « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 109eb2fea0b5750a2079ed7998a049c090ecbc8b (plain)
1
2
3
4
5
6
7
8
9
10
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