lib/middleware/jng.utils.js
function attachToScope(model, itemsToAttach) {
    var me = this;

    _.each(itemsToAttach, function (item) {
        if (me.pancakes.exists(item, null)) {
            model[item] = me.pancakes.cook(item, null);
        }
    });
}
function attachToScope(model, itemsToAttach) {
    var me = this;

    _.each(itemsToAttach, function (item) {
        if (me.pancakes.exists(item, null)) {
            model[item] = me.pancakes.cook(item, null);
        }
    });
}
function attachToScope ( model , itemsToAttach ) { var me = this ; _ . each ( itemsToAttach , function ( item ) { if ( me . pancakes . exists ( item , null ) ) { model [ item ] = me . pancakes . cook ( item , null ) ; } } ) ; }
Given an array of items, load them and add them to the model
@param model
@param itemsToAttach
Given an array of items load them and add them to the model