code: function updateScope(updates, scopeDefinition, currentScope, partialName, updatesName) {
      scopeDefinition = scopeDefinition || {};
  
      // if no updates, that is an issue
      if (!updates) {
          throw new Error(partialName + ' model() does not return a value');
      }
  
      // we don't do anything with a partial promise on the server side
      if (updates.toString() !== '[object Promise]') {
          if (updatesName) {
              currentScope[updatesName] = updates;
          }
          else {
  
              // we are loading each of the update values into the current scope
              _.each(updates, function (updateVal, updateName) {
  
                  // if an update name is on the scope definition, throw error since it is from the parent scope
                  if (scopeDefinition[updateName]) {
                      throw new Error(partialName + ' model() returns a value ' + updateName + ' that is from the parent scope.');
                  }
  
                  currentScope[updateName] = updateVal;
              });
          }
      }
  }
docs: Take value returned from model() and apply it to the current scope
  @param updates
  @param scopeDefinition
  @param currentScope
  @param partialName
  @param updatesName