emu icon indicating copy to clipboard operation
emu copied to clipboard

Should serialize key rather than type name for lazy properties

Open charlieridley opened this issue 12 years ago • 0 comments

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

charlieridley avatar Aug 29 '13 20:08 charlieridley