getoutreach / epf

A framework for keeping your Ember.js apps in sync.
http://epf.io
MIT License
369 stars 33 forks source link

Calling undefined method "stringify" on adapter during session.flush #114

Closed Akii closed 10 years ago

Akii commented 10 years ago

Hi,

I am still pretty new to both, ember and EPF. I tried out ember-data first then wanted to give EPF a try.

All went well until I wanted to persist a newly created model. In line 2047 the undefined method stringify is called on the adapter. Correcting the line to this seems to work:

hash.data = JSON.stringify(hash.data);

No idea if this is a bug, and if so, where it comes from (someone should have noticed it by now, right?). Anyhow, hope it helps.

ghempton commented 10 years ago

Whoa, not sure how that one made it through. I need to switch to sinon instead of the test adapter I am using (as this particular line is not covered).

Anyways, I just corrected the issue. Try using the latest from master :).

Akii commented 10 years ago

Thanks for the fast fix. Works like a charm, as does the rest of EPF :)