Permalink
Browse files

performance: only require 'aws/s3' if it isn't already loaded

  • Loading branch information...
1 parent 9ec35a6 commit cf41b01c474fb2828ac2f82e1175fb1d874241bd @jhawthorn jhawthorn committed with jyurek Feb 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/paperclip/storage/s3.rb
@@ -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])

0 comments on commit cf41b01

Please sign in to comment.