Add missing slash to paperclip_path

This commit is contained in:
Karina Kwiatek 2022-07-03 14:39:00 +02:00 committed by Karina Kwiatek
parent 9c7416efe7
commit 022bdeb159

View file

@ -16,7 +16,7 @@ class BaseUploader < CarrierWave::Uploader::Base
end
def paperclip_path
return "system/users/:attachment/:id_partition/:style/:basename.:extension" if APP_CONFIG["fog"].blank?
return "/system/users/:attachment/:id_partition/:style/:basename.:extension" if APP_CONFIG["fog"].blank?
"users/:attachment/:id_partition/:style/:basename.:extension"
end