js/libs/ember-data.js
function(type) {
    type = this.modelFor(type);
    var adapter = this.adapterFor(type);

    return serializerFor(this.container, type.typeKey, adapter && adapter.defaultSerializer);
  }
function(type) {
    type = this.modelFor(type);
    var adapter = this.adapterFor(type);

    return serializerFor(this.container, type.typeKey, adapter && adapter.defaultSerializer);
  }
.............................. . RECORD CHANGE NOTIFICATION . .............................. 
Returns an instance of the serializer for a given type. For
example, `serializerFor('person')` will return an instance of
`App.PersonSerializer`.

If no `App.PersonSerializer` is found, this method will look
for an `App.ApplicationSerializer` (the default serializer for
your entire application).

If no `App.ApplicationSerializer` is found, it will fall back
to an instance of `DS.JSONSerializer`.

@method serializerFor
@private
@param {String} type the record to serialize
@return {DS.Serializer}