emberjs/data — pull request #1474 by craigteegarden (2013-10-23 18:50:30+00:00)
Title: Include the type when calling the serializer's pushPayload from the stor...

...e's pushPayload.

The [store's `pushPayload` method](https://github.com/emberjs/data/blob/master/packages/ember-data/lib/system/store.js#L1153-L1156) is currently called with a model type so that the correct serializer is used.

````javascript
store.pushPayload('post', pushData);
````

This change just passes the type along to the serializer's `pushPayload` as well.

[ember-data-django-rest-adapter's](https://github.com/toranb/ember-data-django-rest-adapter) JSON format doesn't include the model names as keys in the JSON payload, meaning that if the serializer doesn't get passed the `type` then it will have no way to know which model to use when extracting the data (https://github.com/toranb/ember-data-django-rest-adapter/issues/51). This change allows the django-rest-adapter's serializer implementation to determine the correct model type to use.