RESTAdapter & LocalStorageAdapter?


Not looking for the holy grail here just curious if you can use multiple adapters.

Basically one model uses Rest and another uses Basic and another uses LocalStorage.

Or is it one Adapter per App?



Some of my test suites use multiple stores without any problem, and each store has its own adapter. The trick is that instead of calling:


…I need to call:

myStore = App.MyStore.create();
myStore.find(Foo, 1);

Not sure if this is the best solution, or if it’s what you’re looking for, but I can confirm it works.


Thanks. Really good to know.