(js初心者はこちら)
私はオーバーロードしましたRESTAdapter:
/*
The default RESTAdapter in the application.
An instance of this object will be created automatically.
*/
MyApp.Adapter = DS.RESTAdapter.extend({
ajax: function(url, type, hash) {
var ajax_reply = this._super(url, type, hash);
console.log('ajax_reply (promise) -> '); console.log(ajax_reply);
return ajax_reply;
}
});
promiseこれで、コンソールに表示されるものを取得できます。

.thenメソッド にフックしてjson、ajax 呼び出しによって返されたデータを表示できるようにしたいと思いますが、RESTAdapter. たとえば、RESTAdapter.findメソッドは次のとおりです。
find: function(store, type, id) {
var root = this.rootForType(type), adapter = this;
return this.ajax(this.buildURL(root, id), "GET").
then(function(json){
adapter.didFindRecord(store, type, json, id);
}).then(null, DS.rejectionHandler);
},
.thenメソッドを介して渡されたすべてのjson応答をコンソールで確認したいと思います。どうすればプロミスに「フック」できますか?