How can I use ember-simple-auth to set header in custom url api with ember data?
<p>My ember data model:</p>

<pre><code>import DS from 'ember-data';
import config from './../config/environment';

export default DS.Model.extend({
  ...

  useRepairPackage(repairPackageId) {
    this.get('session').authorize('authorizer:digest', (headerName, headerValue)=&gt; { 
      const headers = {}; 
      headers[headerName] = headerValue; 
      Ember.$.ajax({url: `${config.host}/${config.namespace}/quotations/${this.get('id')}/use_repair_package.json`, type: "PATCH", headers: headers}).then((result)=&gt; { 
        return this.reload();
      }); 
    });
  }
});
</code></pre>

<p>I check <code>ember-simple-auth</code> document, I found this way to add session in header. But it can not work in <code>model</code>, and how can I add the seesion in this action? Thanks.</p>