Is it possible to have buildURL() observe data elsewhere? Say an ember object?
For instance, I would like to change my URL to change depending on values in other ember-data objects. This seems rather convoluted, so let me try and give an example:
Lets say my buildURL function looks like this (currently):
buildURL = function () { return ‘/api’+this._super(record,suffix) + ‘.json’ }
Now say I have a user defined option set, that I want to pass with all my requests. Something like:
myApp.customSetting = ‘value’;
My buildURL() function would look like:
buildURL = function () { return ‘/api’+this._super(record,suffix) + ‘.json?customSetting=’.myApp.customSetting }
This works fine, but only if myApp.customSetting is set correctly on the initial load. Is this even possible?