Current way to handle nested resources?

Got it working:

If you can reference this.store, then you can replace all your existing lookups with this:

this.store.adapterFor('model').set('namespace', '/path/to/url');

Here’s the regex I used for the job:

:%s/this.container.lookup\('adapter:(.+)'\)/this.store.adapterFor('$1')/g
2 Likes