mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
3f3544a3bb
No Issue - Generalize embedded-relation-adapter so it can be used for both fetching and saving records. - Change Adapter inheritance hierarchy to RESTAdapter => BaseAdapter => EmbeddedRelationAdapter. ApplicationAdapter now extends EmbeddedRelationAdapter. - Cleanup or remove adapters that existed just to extend directly from EmbeddedRelationAdapter.
9 lines
255 B
JavaScript
9 lines
255 B
JavaScript
import ApplicationAdapter from 'ghost/adapters/application';
|
|
|
|
var UserAdapter = ApplicationAdapter.extend({
|
|
find: function (store, type, id) {
|
|
return this.findQuery(store, type, {id: id, status: 'all'});
|
|
}
|
|
});
|
|
|
|
export default UserAdapter;
|