Skip to content

Instantly share code, notes, and snippets.

@gdotdesign
Created June 23, 2011 07:54
Show Gist options
  • Save gdotdesign/1042112 to your computer and use it in GitHub Desktop.
Save gdotdesign/1042112 to your computer and use it in GitHub Desktop.
QT1
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