Commit 2e97db88 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Make the uploader use the updated folder

parent 565ead61
......@@ -15,10 +15,12 @@ class GitlabUploader < CarrierWave::Uploader::Base
# This method is overridden in the `FileUploader`
def self.base_dir
return root_dir unless file_storage?
File.join(root_dir, 'system')
end
def self.file_storage?
self.storage.is_a?(CarrierWave::Storage::File)
self.storage == CarrierWave::Storage::File
end
delegate :base_dir, :file_storage?, to: :class
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment