diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2018-03-17 20:37:58 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-03-17 12:37:58 +0100 |
commit | b88fcd53f711673b21e5ff4a547dbf929866a2ee (patch) | |
tree | 5229cafda1678089199ac72783adb11ffdf26444 /config | |
parent | ca7e6a6d2ec2310fd026f2694580f839b4124dd2 (diff) |
Upgrade Paperclip to version 6.0.0 (#6754)
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/paperclip.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb index 8aa1d1b6e..17a520aa2 100644 --- a/config/initializers/paperclip.rb +++ b/config/initializers/paperclip.rb @@ -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' } |