Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make sure that `aws-sdk` is installed by checking for AWS::Core instead

  • Loading branch information...
commit 1df1b030c93ae6b452b0eec51781b8a29a7867e8 1 parent ac82244
@sikachu sikachu authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/paperclip/storage/s3.rb
View
4 lib/paperclip/storage/s3.rb
@@ -79,11 +79,11 @@ module Storage
module S3
def self.extended base
begin
- require 'aws/s3'
+ require 'aws-sdk'
rescue LoadError => e
e.message << " (You may need to install the aws-sdk gem)"
raise e
- end unless defined?(AWS::S3)
+ end unless defined?(AWS::Core)
base.instance_eval do
@s3_options = @options[:s3_options] || {}
Please sign in to comment.
Something went wrong with that request. Please try again.