Skip to content

Commit

Permalink
performance: only require 'aws/s3' if it isn't already loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn authored and Jon Yurek committed Mar 9, 2011
1 parent 9ec35a6 commit cf41b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paperclip/storage/s3.rb
Expand Up @@ -63,7 +63,7 @@ def self.extended base
rescue LoadError => e
e.message << " (You may need to install the aws-s3 gem)"
raise e
end
end unless defined?(AWS::S3)

base.instance_eval do
@s3_credentials = parse_credentials(@options[:s3_credentials])
Expand Down

0 comments on commit cf41b01

Please sign in to comment.