RESTAdapter checks isEnabled('ds-improved-ajax')


#1

I want to use headersForRequest of RESTAdapter. It is called in _requestFor method wich can be called in some methods (for example updateRecord), but there is a condition

if (isEnabled('ds-improved-ajax') && !this._hasCustomizedAjax())

Feature ds-improved-ajax was disabled. Can I enable this feature someway? Is it a bug that headersForRequest can’t be accesible?


#2

Could be related to this thread so maybe you could try the workaround listed there?

Or maybe you could try doing the reverse of this?

Sorry I’m just kinda spitballing here.

This is the original ds-improved-ajax PR so maybe there’s more information linked there as well.


#3

Yes, I tried that both, but had the same result.