From c06eb779a3da271103995a6d624dc28c1aea9ecc Mon Sep 17 00:00:00 2001 From: Gabriel Mazetto Date: Mon, 30 Oct 2017 14:30:41 +0100 Subject: Use the Hashed Storage compatible layer to store Attachments --- app/uploaders/file_uploader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/uploaders') 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 -- cgit v1.2.1