emberjs/data — pull request #791 by opichals (2013-03-08 13:54:51+00:00)
Title: Allow a path as the return value of the keyForXXX.

Consider the following JSON: { dashboard: { content: { tabs: [] } } }

App.Dashboard.reopen({
tabs: DS.hasMany(App.Tab)
});
App.DashboardAdapter.map('App.Dashboard', {
tabs: { embedded: "always" }
});

App.DashboardSerializer = DS.JSONSerializer.extend({
keyForHasMany: function(type, name) {
return 'content.'+name;
}
});