I have two related models which I usually get asynchronously through the RestAdapter.
In my test scenario where I am using MockJax however, as far as I can tell mockjax insists on embedding the records.
Is there a way that I can write a custom serialzer that will allow either an embedded object or an id?
Alternately, is there a way that I can specify a custom serializer that will only be used when env === test?
Aucun commentaire:
Enregistrer un commentaire