gitlab-org--gitlab-foss/app/uploaders/namespace_file_uploader.rb

16 lines
296 B
Ruby
Raw Normal View History

2017-12-06 06:36:11 -05:00
class NamespaceFileUploader < FileUploader
def self.base_dir
File.join(root_dir, '-', 'system', 'namespace')
end
def self.dynamic_path_segment(model)
dynamic_path_builder(model.id.to_s)
end
private
def secure_url
File.join('/uploads', @secret, file.filename)
end
end