0
0
Fork 0

Revert "Upgrade Paperclip to version 6.0.0" (#6807)

* Revert "Bump version to 2.3.2rc1"

This reverts commit cdf8b92fea.

* Revert "Downgrade Dockerfile to Ruby 2.4.3 on Alpine 3.6 (#6806)"

This reverts commit 0074cad44f.

* Revert "Handle Mastodon::HostValidationError when pulling remoteable assets (#6782)"

This reverts commit 4a0a19fe54.

* Revert "Correct the reference to user's password in mastodon:add_user task (#6800)"

This reverts commit 338bff8b93.

* Revert "Upgrade Paperclip to version 6.0.0 (#6754)"

This reverts commit b88fcd53f7.
This commit is contained in:
Eugen Rochko 2018-03-17 14:20:35 +01:00 committed by GitHub
parent cdf8b92fea
commit 40871caa4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 21 deletions

View file

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