js/libs/ember-data.js
function(root) {
    var camelized = Ember.String.camelize(root);
    return Ember.String.singularize(camelized);
  }
function(root) {
    var camelized = Ember.String.camelize(root);
    return Ember.String.singularize(camelized);
  }
EXTRACT 
Extracts the model typeKey from underscored root objects.

@method typeForRoot
@param {String} root
@returns String the model's typeKey