Skip to content

Instantly share code, notes, and snippets.

@TylerBrock
Created July 14, 2012 03:40
Show Gist options
  • Save TylerBrock/3109080 to your computer and use it in GitHub Desktop.
Save TylerBrock/3109080 to your computer and use it in GitHub Desktop.
require 'mongo'
require './model/mongoModule'
require './model/user'
if ENV['RACK_ENV'] == 'production'
CONNECTION = Mongo::Connection.from_uri(ENV['MONGOHQ_URL'])
else
CONNECTION = Mongo::Connection.new("localhost", 27017)
end
DB = CONNECTION.db('milieu')
USERS = DB['users']
VENUES = DB['venues']
CHECKINS = DB['checkins']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment