diff --git a/addon/adapters/rest.js b/addon/adapters/rest.js index c7bc6c73adc..a36aecf39be 100644 --- a/addon/adapters/rest.js +++ b/addon/adapters/rest.js @@ -881,10 +881,19 @@ export default Adapter.extend(BuildURLMixin, { Ember.run.join(null, reject, error); }; - Ember.$.ajax(hash); + adapter._ajaxRequest(hash); }, 'DS: RESTAdapter#ajax ' + type + ' to ' + url); }, + /** + @method _ajaxRequest + @private + @param {Object} options jQuery ajax options to be used for the ajax request + */ + _ajaxRequest(options) { + Ember.$.ajax(options); + }, + /** @method ajaxOptions @private