Unable to access adapter instance if specified as String #569

darthdeus opened this Issue Jan 1, 2013 · 2 comments


None yet

4 participants


If I specify an adapter as a String, such as

App.Store = DS.Store.extend({
  adapter: "DS.RESTAdapter"

it is not possible to access the store's adapter instance at runtime, such as App.store.get("adapter"), as it will just keep returning the "DS.RESTAdapter" string, even though the adapter works.

wagenet commented Jan 9, 2013

I believe there is a method along the lines of "adapterFor(type)".

tchak commented Apr 19, 2013

Confirm, adapterForType should be used to get the adapter. It can be called without arguments to get the default one.

@darthdeus can you close this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment