diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-12-08 15:37:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-08 15:37:12 +0100 |
commit | f3d232381d60cbc93cb7a35285eb24c30cd0aba0 (patch) | |
tree | 8265da7bac3c3dee64d577d4d1c148f75d8f594e /config | |
parent | 6d7daf6154b1edbfe9a0c0b297baab8cd45658f3 (diff) |
Add `tootctl media remove-orphans` (#12568)
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/paperclip.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb index 96607b7ce..dadc492a0 100644 --- a/config/initializers/paperclip.rb +++ b/config/initializers/paperclip.rb @@ -89,7 +89,7 @@ else Paperclip::Attachment.default_options.merge!( storage: :filesystem, use_timestamp: true, - path: ENV.fetch('PAPERCLIP_ROOT_PATH', ':rails_root/public/system') + '/:class/:attachment/:id_partition/:style/:filename', + path: File.join(ENV.fetch('PAPERCLIP_ROOT_PATH', File.join(':rails_root', 'public', 'system')), ':class', ':attachment', ':id_partition', ':style', ':filename'), url: ENV.fetch('PAPERCLIP_ROOT_URL', '/system') + '/:class/:attachment/:id_partition/:style/:filename', ) end |