mirror of
https://github.com/flarum/core.git
synced 2025-07-24 18:21:33 +02:00
Upgrade ember-cli to 0.1.4 and fix related breakage. closes #18
This commit is contained in:
@@ -1,21 +1,17 @@
|
||||
import Ember from 'ember';
|
||||
import Resolver from 'ember/resolver';
|
||||
import loadInitializers from 'ember/load-initializers';
|
||||
import config from './config/environment';
|
||||
|
||||
Ember.MODEL_FACTORY_INJECTIONS = true;
|
||||
|
||||
var App = Ember.Application.extend({
|
||||
modulePrefix: 'flarum', // TODO: loaded via config
|
||||
Resolver: Resolver,
|
||||
|
||||
registerPlugin: function(plugin) {
|
||||
console.log('Plugin loaded: '+plugin.name);
|
||||
plugin.boot();
|
||||
}
|
||||
modulePrefix: config.modulePrefix,
|
||||
podModulePrefix: config.podModulePrefix,
|
||||
Resolver: Resolver
|
||||
});
|
||||
|
||||
loadInitializers(App, 'flarum');
|
||||
|
||||
loadInitializers(App, config.modulePrefix);
|
||||
|
||||
//-----------------------------------------
|
||||
// TODO: Move all this to an initializer
|
||||
|
Reference in New Issue
Block a user