9 lines
348 B
CoffeeScript
9 lines
348 B
CoffeeScript
import DunlopAdapter from 'ember-cli-dunlop/adapters/application'
|
|
|
|
## Override the default adapter with the `DS.ActiveModelAdapter` which
|
|
window.client_id ||= "client#{Math.round(Math.random() * 100000)}"
|
|
Ember.$.ajaxPrefilter (options, oriOpt, jqXHR)->
|
|
jqXHR.setRequestHeader 'client-id', window.client_id
|
|
|
|
export default DunlopAdapter.extend()
|