0
0
Fork 0

Upgrade Paperclip to version 6.0.0 (#6754)

This commit is contained in:
Yamagishi Kazutoshi 2018-03-17 20:37:58 +09:00 committed by Eugen Rochko
parent ca7e6a6d2e
commit b88fcd53f7
3 changed files with 21 additions and 15 deletions

View file

@ -14,8 +14,7 @@ Paperclip::Attachment.default_options.merge!(
)
if ENV['S3_ENABLED'] == 'true'
require 'aws-sdk'
Aws.eager_autoload!(services: %w(S3))
require 'aws-sdk-s3'
s3_region = ENV.fetch('S3_REGION') { 'us-east-1' }
s3_protocol = ENV.fetch('S3_PROTOCOL') { 'https' }