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: cfcb877cc3e5b83df013184465d8e3959f0ca5f3 (plain)
1
2
3
4
5
6
7
8
9
class AttachmentUploader < GitlabUploader
  include UploaderHelper

  storage :file

  def store_dir
    "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
  end
end