summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJames Lopez <james@gitlab.com>2017-11-23 17:04:35 +0000
committerNick Thomas <nick@gitlab.com>2017-11-23 17:04:35 +0000
commitfdd7a4cb1bb8f25dd2c8c6b4762d422e138d809a (patch)
treefd8eecdb08a70581e51173eb9e71843e90dd1016 /lib
parentdd11f0e053688fdec404b43ddf97d105e7d02f14 (diff)
downloadgitlab-ce-fdd7a4cb1bb8f25dd2c8c6b4762d422e138d809a.tar.gz
Fix hashed storage for attachments bugs
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/import_export/uploads_saver.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gitlab/import_export/uploads_saver.rb b/lib/gitlab/import_export/uploads_saver.rb
index f9ae5079d7c..627a487d577 100644
--- a/lib/gitlab/import_export/uploads_saver.rb
+++ b/lib/gitlab/import_export/uploads_saver.rb
@@ -24,8 +24,7 @@ module Gitlab
end
def uploads_path
- # TODO: decide what to do with uploads. We will use UUIDs here too?
- File.join(Rails.root.join('public/uploads'), @project.path_with_namespace)
+ FileUploader.dynamic_path_segment(@project)
end
end
end