How can i do something like this with ember-cli? The .map('App.Post'
doesn't want to work with the cli.
App.Post = DS.Model.extend({
body: DS.attr('string')
});
App.Adapter.map('App.Post', {
body: {key: 'data'}
});
The problem is this: I work with a JSON Api that uses the reserved word data in one of its models.
Aucun commentaire:
Enregistrer un commentaire