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

  storage :file

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