Skip to content

Commit

Permalink
Another instance of modelName
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav0 committed Nov 25, 2015
1 parent 64f9670 commit 18d451c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/adapters/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
Expand Down

0 comments on commit 18d451c

Please sign in to comment.