Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Unable to access adapter instance if specified as String #569

Closed
darthdeus opened this Issue · 2 comments

4 participants

@darthdeus
Collaborator

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
Owner

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

@tchak
Collaborator

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
Something went wrong with that request. Please try again.