Skip to content

Instantly share code, notes, and snippets.

@citizen428
Created December 6, 2009 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save citizen428/250193 to your computer and use it in GitHub Desktop.
Save citizen428/250193 to your computer and use it in GitHub Desktop.
db = Connection.new(ENV['DATABASE_URL']).db(db_name)
if ENV['DATABASE_USER'] && ENV['DATABASE_PASSWORD']
auth = db.authenticate(ENV['DATABASE_USER'], ENV['DATABASE_PASSWORD'])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment