daliwali/ember-json-api — pull request #12 by 7footmoustache (2014-05-25 22:36:43+00:00)
Title: Add type to arguments for normalizePayload

As defined in http://ember-doc.com/classes/DS.RESTSerializer.html#method_normalizePayload, there are 2 parameters, type and payload.

As this function returns "payload" which is the first parameter, it actually returns the type to the calling code, and chaos ensues.