This works with Ember Data 1.0.0-beta.7+canary.b45e23ba, but not Ember Data 1.0.0-beta.8.2a68c63a.
normalizePayload
now takes just a payload.
What is the new way to do this?
This works with Ember Data 1.0.0-beta.7+canary.b45e23ba, but not Ember Data 1.0.0-beta.8.2a68c63a.
normalizePayload
now takes just a payload.
What is the new way to do this?
ApplicationSerializer = DS.RESTSerializer.extend({ | |
normalizePayload: function(type, payload) { | |
var typeKey = type.typeKey; | |
var value = {}; | |
value[typeKey] = payload; | |
return value; | |
} | |
}); |