Skip to content

Commit ada364c

Browse files
icaritojywarren
authored andcommitted
initial changes to implement fog cloud storage library
1 parent 74bb572 commit ada364c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/initializers/paperclip_string.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Paperclip::Attachment.default_options[:storage] = :fog
88
Paperclip::Attachment.default_options[:fog_directory] = ENV["GOOGLE_STORAGE_BUCKET_NAME"] || ''
9-
Paperclip::Attachment.default_options[:path] = ":rails_root/public/system/:attachment/:id/:style/:filename"
9+
Paperclip::Attachment.default_options[:path] = ":rails_root/public/system/public/system/:class/:attachment/:id_partition/:style/:filename"
1010
Paperclip::Attachment.default_options[:fog_credentials] = {
1111
provider: ENV["FOG_PROVIDER"] || "Local",
1212
local_root: "#{Rails.root}/public",

0 commit comments

Comments
 (0)