emu
emu copied to clipboard
Should serialize key rather than type name for lazy properties
App.Company = Emu.Model.extend({
bankAccount: Emu.field("App.Account", {lazy: true})
});
App.Account = Emu.Model.extend({});
//Get a lazy property
var account = company.get("account");
//GET request currently: http://www.mysite.com/companies/1/account
//GET request should be: http://www.mysite.com/companies/1/bankAccount