Created
June 23, 2011 07:54
-
-
Save gdotdesign/1042112 to your computer and use it in GitHub Desktop.
QT1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
S3Bucket = "something" | |
def urlForS3(path) | |
if ENV['DATABASE_URL'] | |
"http://"+S3Bucket+".s3.amazonaws.com"+path | |
else | |
"/local/"+path | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment