Hello Ember Data World,
I have been studying custom adapters attempting to figure out how to override the save method.
From my understanding, it seems like you need to do something like this:
DS.RESTAdapter.extend({
save: function() { return this._super();}
})
However, when I attempted to invoke the save operation on my model object using:
model.save()
The store gets invoked directly and not my adapter custom code.
Has anyone attempted to do this before?
I am able to call the find method using the following code in the same adapter
findQuery: function(store, type, query) {
//debugger;
console.log("findQuery: Custom adapter called!");
return this.ajax(this.buildURL(type.typeKey), 'GET', { data: query });
}