lib/fakery.js
function(name, overrides) {
    var factory = factories[name], resolved;
    if (overrides == null) overrides = {};
    if (factory == null) return;
    // resolve "eager" properties first and leave lazy ones for a second pass
    var resolved = resolve(factory.attributes);
    // pass already resolved attributes as context to the second pass
    resolved = resolve(factory.attributes, resolved);
    // apply overrides
    helpers.each(overrides, function(value, key) {
        resolved[key] = value;
    });
    return new factory.model(resolved);
}
function(name, overrides) {
    var factory = factories[name], resolved;
    if (overrides == null) overrides = {};
    if (factory == null) return;
    // resolve "eager" properties first and leave lazy ones for a second pass
    var resolved = resolve(factory.attributes);
    // pass already resolved attributes as context to the second pass
    resolved = resolve(factory.attributes, resolved);
    // apply overrides
    helpers.each(overrides, function(value, key) {
        resolved[key] = value;
    });
    return new factory.model(resolved);
}
function ( name , overrides ) { var factory = factories [ name ] , resolved ; if ( overrides == null ) overrides = { } ; if ( factory == null ) return ; // resolve "eager" properties first and leave lazy ones for a second pass var resolved = resolve ( factory . attributes ) ; // pass already resolved attributes as context to the second pass resolved = resolve ( factory . attributes , resolved ) ; // apply overrides helpers . each ( overrides , function ( value , key ) { resolved [ key ] = value ; } ) ; return new factory . model ( resolved ) ; }
Makes a model from the factory with the given `name`.

Params
- name: the name of the factory, as a string
- overrides: a hash of attributes to override factory attributes passed
in `fake()` call.

Examples:
>>> fakery.make('test', {name: 'test'});
// => {name: 'test', ...}
Makes a model from the factory with the given name .