lib/fakery.js
function(name, arg1, arg2) {
    var overrides, done, model;
    if (helpers.isObject(arg1)) {
        overrides = arg1;
        done = arg2;
    }
    if (helpers.isFunction(arg1)) {
        overrides = {};
        done = arg1;
    }
    model = make(name, overrides);
    if (model != null) model.save(done);
    return model;
}
function(name, arg1, arg2) {
    var overrides, done, model;
    if (helpers.isObject(arg1)) {
        overrides = arg1;
        done = arg2;
    }
    if (helpers.isFunction(arg1)) {
        overrides = {};
        done = arg1;
    }
    model = make(name, overrides);
    if (model != null) model.save(done);
    return model;
}
function ( name , arg1 , arg2 ) { var overrides , done , model ; if ( helpers . isObject ( arg1 ) ) { overrides = arg1 ; done = arg2 ; } if ( helpers . isFunction ( arg1 ) ) { overrides = { } ; done = arg1 ; } model = make ( name , overrides ) ; if ( model != null ) model . save ( done ) ; return model ; }
Makes a model and persists it in the database.

Params
- name: the name of the factory, as a string
- arg1: either a mongoose callback or an override hash
- arg2: if arg1 is an override hash, then arg2 is the mongoose callback

Examples:
>>> fakery.makeAndSave('test', function(err, test) {
console.log(test);
})
// => TestUser
Makes a model and persists it in the database .