Permalink
Browse files

respect environment var S3_URL as url option

  • Loading branch information...
1 parent 8ec9b3f commit 577abe69fbef50892da873ab4badfde9b7826d42 Richard Metzler committed Dec 13, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/paperclip-s3.rb
View
@@ -20,6 +20,7 @@ def has_attached_file(name, options = {})
options[:storage] = :s3
options[:path] ||= "/:class-:attachment/:id/:style-:basename.:extension"
options[:bucket] ||= ENV["S3_BUCKET"]
+ options[:url] ||= ENV["S3_URL"]
options[:s3_credentials] ||= {
:access_key_id => ENV['S3_KEY'],
:secret_access_key => ENV['S3_SECRET']

0 comments on commit 577abe6

Please sign in to comment.