RESTAdapter & LocalStorageAdapter?


#1

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?

Brendan


#2

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:

App.Foo.find(1)

…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.


#3

Thanks. Really good to know.