app/bin/trinte.js
function bootModel(trinte, schema, file) {
    if (/\.js$/i.test(file)) {
        var name = file.replace(/\.js$/i, '');
        var modelDir = path.resolve(__dirname, '../app/models');
        trinte.models[name] = require(modelDir + '/' + name)(schema);// Include the mongoose file
        global[name] = trinte.models[name];
    }
}
function bootModel(trinte, schema, file) {
    if (/\.js$/i.test(file)) {
        var name = file.replace(/\.js$/i, '');
        var modelDir = path.resolve(__dirname, '../app/models');
        trinte.models[name] = require(modelDir + '/' + name)(schema);// Include the mongoose file
        global[name] = trinte.models[name];
    }
}
function bootModel ( trinte , schema , file ) { if ( / \.js$ / i . test ( file ) ) { var name = file . replace ( / \.js$ / i , '' ) ; var modelDir = path . resolve ( __dirname , '../app/models' ) ; trinte . models [ name ] = require ( modelDir + '/' + name ) ( schema ) ; // Include the mongoose file global [ name ] = trinte . models [ name ] ; } }
simplistic model support

@param {TrinteJS} trinte - trinte app descriptor.
@param {Schema}  schema
@param {String}  file
simplistic model support