From 2a017c8b11f57cd709e3178d40ea5b6da158fc16 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sat, 2 Jul 2022 10:19:32 +0200 Subject: [PATCH] Fix upload path when not using fog with cloud storage --- app/uploaders/base_uploader.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/uploaders/base_uploader.rb b/app/uploaders/base_uploader.rb index dfa3ecab..8aac8b85 100644 --- a/app/uploaders/base_uploader.rb +++ b/app/uploaders/base_uploader.rb @@ -16,6 +16,8 @@ class BaseUploader < CarrierWave::Uploader::Base end def paperclip_path + return "system/users/:attachment/:id_partition/:style/:basename.:extension" if APP_CONFIG["fog"].blank? + "users/:attachment/:id_partition/:style/:basename.:extension" end