adapterFor (modelName) public
Returns an instance of the adapter for a given type. For example, adapterFor('person')
will return an instance of App.PersonAdapter
.
If no App.PersonAdapter
is found, this method will look for an App.ApplicationAdapter
(the default adapter for your entire application).
If no App.ApplicationAdapter
is found, it will return the value of the defaultAdapter
.
Parameters:
-
modelName
String
Returns:
- DS.Adapter
Please login to continue.