Closed drewcovi closed 10 years ago
I don't think there's a recommended approach for using per-model adapters. In fact, I struggled with that as Ember Data defines the adapter globally at App.ApplicationAdapter
. That sucks.
I have in my app two stores, one with IndexedDB and another with RESTAdapter, so it works offline, but I guess it's not the point of your comment. Just sharing.
I believe you should open an issue in the Ember Data repo :)
I'm seriously loving this thing the more I work with it just seems like a nicer, more organized solution as compared to LocalStorage.
However I can't seem to sort out how this would work with per-model adapter and serializer definitions. It seems like you want to set a version number and ObjectStores in only one place, and the ApplicationAdapter may in some cases be something else.
Is there a recommended approach here? Or do we need to use this for all models?