getoutreach / epf

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

Add `session.persist` #131

Open ghempton opened 10 years ago

ghempton commented 10 years ago

This method would create or update a model immediately on the server. The perk of this over a normal session.flush is that it could take advantage of the underlying opts parameter to allow for custom parameters, endpoints, etc.

ghempton commented 10 years ago

Moreover, session.flush should just call session.persist on all dirty models. The underlying adapter can do the batching on the run loop.