MongoMapper Connector

MongoMapper Connector is a tiny, tiny gem I wrote to set up MongoMapper connections in several of my Rails apps. I was repeating the same tiny initializer across many apps, and decided that a simple gem would just be easier.

Just define your environment variables:

MONGO_HOST - Production mongo host, such as 'localhost' (defaults to localhost on development/test) MONGO_PORT - Such as '27017' (defaults to 27017 on development/test) MONGO_PREFIX - If this is 'ferret', your databases will be 'ferret-development', 'ferret-production'... MONGO_USERNAME - Username for production database MONGO_PASSWORD - Password for production database.