This file contains hidden or 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
// Change the _open function in mongoose's connection.js to this | |
// and you'll be able to connect to MongoHQ URLS! | |
_open: function(options){ | |
var self = this; | |
this.db = new mongo.Db(this.name, new mongo.Server(this.uri.hostname, this.uri.port, options)); | |
if (this.uri.auth) { | |
var auth = this.uri.auth.split(':'); | |
this.db.open(function(err) { |