diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2017-10-30 16:30:41 +0300 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2017-10-30 16:30:41 +0300 |
commit | c06eb779a3da271103995a6d624dc28c1aea9ecc (patch) | |
tree | 53875169976b90d46f3f81827b2934314e5aa321 /app/uploaders | |
parent | b19076948de9d637ab5a74ea59249cdb680c8495 (diff) |
Use the Hashed Storage compatible layer to store Attachments
Diffstat (limited to 'app/uploaders')
-rw-r--r-- | app/uploaders/file_uploader.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/uploaders/file_uploader.rb b/app/uploaders/file_uploader.rb index 7027ac4b5db..d4ba3a028be 100644 --- a/app/uploaders/file_uploader.rb +++ b/app/uploaders/file_uploader.rb @@ -30,7 +30,7 @@ class FileUploader < GitlabUploader # # Returns a String without a trailing slash def self.dynamic_path_segment(model) - File.join(CarrierWave.root, base_dir, model.full_path) + File.join(CarrierWave.root, base_dir, model.disk_path) end attr_accessor :model |