Merge branch 'master' into clostridium
* master: User adapter
This commit is contained in:
commit
019031dd58
2 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
});
|
Reference in a new issue