parent
3c2659b09d
commit
2615668aad
|
@ -16,7 +16,7 @@ export default ApplicationAdapter.extend({
|
|||
return this.ajax(this.buildURL(type.modelName, name), 'PUT', { data }).then(() => {
|
||||
// doing this to make it like a Vault response - ember data doesn't like 204s if it's not a DELETE
|
||||
return {
|
||||
data: assign({}, snapshot.record.toJSON(), { id: name }),
|
||||
data: assign({}, this.serialize(snapshot), { id: name }),
|
||||
};
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue