import DunlopAdapter from 'ember-cli-dunlop/adapters/application'

# Override the default adapter with the `DS.ActiveModelAdapter` which
Ember.$.ajaxPrefilter (options, oriOpt, jqXHR)->
  jqXHR.setRequestHeader 'client-id', window.client_id

export default DunlopAdapter.extend
  pathForType: (modelName) ->
    @_super modelName.replace(/^panda[\/\.]/, '')
