escalant3 / ember-data-tastypie-adapter

An adapter to connect django applications powered by django-tastypie with ember.js apps
MIT License
102 stars 26 forks source link

Ember data 0.13 fixes #24

Closed olofsj closed 11 years ago

olofsj commented 11 years ago

Hi,

Here are some fixes that I found necessary to make the adapter work with Ember Data 0.13. The RestAdapter now wraps call to ajax in RSVP, so I moved to same changes into the Tastypie adapter. There is also a fix for pagination (since) handling as the API had changed a little there.

To get the tests to work I had to wrap all calls to the store in Ember.run otherwise the ajax callback would not always be triggered before the result was checked. However, I see that in the tests for the RestAdapter in Ember Data that's not the case, so there may be a better way. However, after trying a lot of different ways this was the only way that worked for me.

escalant3 commented 11 years ago

I was in the process of upgrading the adapter but your work looks amazing. Thanks!