mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 18:39:52 +01:00
Fix upload path when not using fog with cloud storage
This commit is contained in:
parent
c899e7983c
commit
2a017c8b11
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue