emberjs/data — pull request #522 by ginty (2012-12-14 00:23:46+00:00)
Title: Embedded root

Hi,

Ember-data automatically builds models on the client side when consuming a REST API, however when a url is defined such as:

App.Person.reopenClass {
url: "some/path/to/people"
}

then it starts complaining that no mapping is defined to help it build the models.

This update makes the rest adapter work better in such situations and to automatically infer the json root based on the url.

Cheers,
Stephen