private/lib/core/connect.js
function connect() {
	// detect type of each argument
	for (var i = 0; i < arguments.length; i++) {
		if (arguments[i].constructor.name === 'Mongoose') {
			// detected Mongoose
			this.mongoose = arguments[i];
		} else if (arguments[i].name === 'app') {
			// detected Express app
			this.app = arguments[i];
		}
	}
	return this;
}
function connect() {
	// detect type of each argument
	for (var i = 0; i < arguments.length; i++) {
		if (arguments[i].constructor.name === 'Mongoose') {
			// detected Mongoose
			this.mongoose = arguments[i];
		} else if (arguments[i].name === 'app') {
			// detected Express app
			this.app = arguments[i];
		}
	}
	return this;
}
function connect ( ) { // detect type of each argument for ( var i = 0 ; i < arguments . length ; i ++ ) { if ( arguments [ i ] . constructor . name === 'Mongoose' ) { // detected Mongoose this . mongoose = arguments [ i ] ; } else if ( arguments [ i ] . name === 'app' ) { // detected Express app this . app = arguments [ i ] ; } } return this ; }
Connects Seminarjs to the application's mongoose instance.

####Example:

var mongoose = require('mongoose');

seminarjs.connect(mongoose);

@param {Object} connections
@api public
Connects Seminarjs to the application s mongoose instance .