Revert "Upgrade Paperclip to version 6.0.0" (#6807)
* Revert "Bump version to 2.3.2rc1" This reverts commitcdf8b92fea
. * Revert "Downgrade Dockerfile to Ruby 2.4.3 on Alpine 3.6 (#6806)" This reverts commit0074cad44f
. * Revert "Handle Mastodon::HostValidationError when pulling remoteable assets (#6782)" This reverts commit4a0a19fe54
. * Revert "Correct the reference to user's password in mastodon:add_user task (#6800)" This reverts commit338bff8b93
. * Revert "Upgrade Paperclip to version 6.0.0 (#6754)" This reverts commitb88fcd53f7
.
This commit is contained in:
parent
cdf8b92fea
commit
40871caa4b
3 changed files with 15 additions and 21 deletions
|
@ -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' }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue