Handling Composite Keys


So far my ride with ember and ember-data have been well. I have faced some challenges and overcame them. But one thing I have failed to figure out is how to make CRUD with ember-data for model whose PK is not single attribute but rather composite of two attributes.

How do you handle that case with ember data without affecting the rest of Application I have checkd out google and the best I could get was this gist on github.

Is there more cleaner way to specify model id when its composite? In that case should I put attributes in model or I don’t put them there like in case of id?