emberjs/data — pull request #2018 by ivanvanderbyl (2014-06-08 23:39:55+00:00)
Title: Embedded Records assert payload includes root element before extracting

This PR adds an assertion to `extractSingle` and `extractArray` within the `EmbeddedRecordsMixin` to help with debugging, especially when working with non-standard data which would first need to be normalized.

It also fixes a bug when extracting embedded belongsTo associations which use non-standard IDs.