Unable to access adapter instance if specified as String #569

Closed
darthdeus opened this Issue Jan 1, 2013 · 2 comments

Projects

None yet

4 participants

@darthdeus
Member

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
Member
wagenet commented Jan 9, 2013

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

@tchak
Member
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