There was an error while loading. Please reload this page.
1 parent 306a5f3 commit 69ede95Copy full SHA for 69ede95
1 file changed
config/initializers/paperclip.rb
@@ -1,12 +1,12 @@
1
# frozen_string_literal: true
2
3
Paperclip::Attachment.default_options[:url] = ":s3_domain_url"
4
-if Rails.env == "test" || ENV["CI"]
+if Rails.env == "production"
5
Paperclip::Attachment.default_options[:path] =
6
- ":rails_root/public/system/:class/:attachment/:id_partition/:style/:filename"
+ "/:class/:attachment/:id_partition/:style/:filename"
7
else
8
9
- "/:class/:attachment/:id_partition/:style/:filename"
+ ":rails_root/public/system/:class/:attachment/:id_partition/:style/:filename"
10
end
11
12
module Paperclip
0 commit comments