Here is how I did the above work example, note that I am using ember-cli . Instead of creating my repository with DS.RESTAdapter.create() or in my case Im using DS.LSAdapter , I create my store in the initializer as follows:
app.LsStore = DS.Store.extend({ adapter: '-ls', }); app.register('store:lsstore', app.LsStore); app.register('adapter:-ls', DS.LSAdapter);
Basically, this is the lsstore and adapter:-ls register on the container. Then I can enter my store in a route or controller application and this will try to find the adapter using adapter:-ls .
source share