v4.0.0rc4-branch #5
1 changed files with 6 additions and 0 deletions
|
@ -67,6 +67,12 @@ if ENV['S3_ENABLED'] == 'true'
|
|||
retry_limit: 0,
|
||||
}
|
||||
)
|
||||
|
||||
if ENV['S3_PERMISSION'] == ''
|
||||
Paperclip::Attachment.default_options.merge!(
|
||||
s3_permissions: ->(*) { nil }
|
||||
)
|
||||
end
|
||||
|
||||
if ENV.has_key?('S3_ENDPOINT')
|
||||
Paperclip::Attachment.default_options[:s3_options].merge!(
|
||||
|
|
Loading…
Reference in a new issue