I’m having a problem accessing an initializer from an adapter.
Adapter:
import DS from 'ember-data';
export default DS.RESTAdapter.extend({
host: this.config.api.baseURL
});
Initializer:
import config from '../config/environment';
export function initialize(container, application) {
application.register('config:main', config, {instantiate: false});
application.inject('route', 'config', 'config:main');
application.inject('controller', 'config', 'config:main');
application.inject('adapter', 'config', 'config:main');
}
export default {
name: 'config',
initialize: initialize
};