Revert "Adjust for new naming conventions"

This commit is contained in:
2018-04-15 16:35:31 +00:00
committed by GitHub
parent d2c43b9ef1
commit 399ee27af9
10 changed files with 39 additions and 15 deletions
+5
View File
@@ -79,6 +79,11 @@ export default Service.extend({
debug('[kredits] build', name, attributes);
let model = getOwner(this).lookup(`model:${name}`);
// coerce id to string
if (attributes.id) {
attributes.id = attributes.id.toString();
}
model.setProperties(attributes);
return model;
},