Global injection

This commit is contained in:
Matthew Dillon 2015-06-11 13:37:26 -08:00
parent c70dd933c5
commit 559c0a3d9f
9 changed files with 76 additions and 9 deletions

View file

@ -1,8 +1,9 @@
import DS from 'ember-data';
import config from '../../config/environment';
export default DS.RESTAdapter.extend({
namespace: 'api',
host: config.apiURL,
host: function() {
return this.get('globals.apiURL');
}.property(),
coalesceFindRequests: true,
});