From 18d451ccfdc71c3e24b45e6f19d7f325bc1b51b1 Mon Sep 17 00:00:00 2001 From: Gaurav Munjal Date: Wed, 25 Nov 2015 10:06:53 -0500 Subject: [PATCH] Another instance of modelName --- app/adapters/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/adapters/application.js b/app/adapters/application.js index a5cfb4eb..10fb726e 100644 --- a/app/adapters/application.js +++ b/app/adapters/application.js @@ -42,7 +42,7 @@ export default DS.RESTAdapter.extend({ serializer.serializeIntoHash(data, type, snapshot); var id = snapshot.id; - var url = this.buildURL(type.typeKey, id, snapshot, 'updateRecord'); + var url = this.buildURL(type.modelName, id, snapshot, 'updateRecord'); return this.ajax(url, "PATCH", { data: data }); }