Ember-cli and ember-data

Ember-cli docs states that models “filenames should be all lowercase and dasherized”. Which is simple and great. And relationships are defined that way too, so far so good. But that is somewhat different from what ember / ember-data docs says, especially RESTSerializer. It defines typeForRoot as “By default the typeKey for a model is its name in camelCase” and later on this result is used in something like container.lookup('model:'+name).

But when I defined my models as per ember-cli docs, this lookup simply fails. So what is the correct way of defining relationships?

This issue came up when I tried to port ember-data-tastypie-adapter to be an ember-cli addon. I got all my adapter tests working, but the serializers one are still failing because of this issue. Any help would be really welcomed.

https://github.com/pedrokiefer/ember-data-tastypie-adapter/tree/ember-cli