emberjs/data — pull request #2011 by pixelhandler (2014-06-06 07:40:07+00:00)
Title: Push payload support for sided-loaded embedded records

Currently the DS.EmbeddedRecordsMixin doesn't support embedding records in the JSON payload for side-loading. The root part of the payload for a given resource does have embedded records extracted. With the addition of `pushPayload` to the DS.EmbeddedRecordsMixin the side-loaded portion of the payload may also have embedded records. Only embedded records that are configured in a serializer, (e.g. with `embedded: 'always'`) will be extracted in the side-loaded or root portions of the JSON payload.

- Store calls serializer's pushPayload when side-loading
- Adds pushPayload method to DS.EmbeddedRecordsMixin
- When pushing payloads with embedded records they are also pushed into the store

[Fixes #1638]