Merge branch 'master' into clostridium

* master:
  User adapter
This commit is contained in:
Matthew Dillon 2015-11-17 09:59:12 -07:00
commit 019031dd58
2 changed files with 7 additions and 0 deletions

View file

@ -1,31 +0,0 @@
import DS from 'ember-data';
import DataAdapterMixin from 'ember-simple-auth/mixins/data-adapter-mixin';
import Ember from 'ember';
const { inject: { service } } = Ember;
const { RESTAdapter } = DS;
export default RESTAdapter.extend(DataAdapterMixin, {
globals: service(),
authorizer: 'authorizer:application',
namespace: function() {
return 'api/' + this.get('globals.genus');
}.property(),
host: function() {
return this.get('globals.apiURL');
}.property(),
coalesceFindRequests: true,
shouldReloadAll: function() {
return true;
},
shouldBackgroundReloadRecord: function() {
return false;
}
});