Class Ember.DataAdapter
publicThe DataAdapter
helps a data persistence library
interface with tools that debug Ember such
as the Ember Extension
for Chrome and Firefox.
This class will be extended by a persistence library which will override some of the methods with library-specific code.
The methods likely to be overridden are:
getFilters
detect
columnsForType
getRecords
getRecordColumnValues
getRecordKeywords
getRecordFilterValues
getRecordColor
observeRecord
The adapter will need to be registered
in the application's container as dataAdapter:main
Example:
Application.initializer({
name: "data-adapter",
initialize: function(container, application) {
application.register('data-adapter:main', DS.DataAdapter);
}
});
acceptsModelName public
Defined in packages/ember-extension-support/lib/data_adapter.js:98
Ember Data > v1.0.0-beta.18 requires string model names to be passed around instead of the actual factories.
This is a stamp for the Ember Inspector to differentiate between the versions to be able to support older versions too.
container public
Defined in packages/ember-extension-support/lib/data_adapter.js:62
Available since v1.3.0
The container of the application being debugged. This property will be injected on creation.
containerDebugAdapter public
Defined in packages/ember-extension-support/lib/data_adapter.js:75
Available since v1.5.0
The container-debug-adapter which is used to list all models.