FIX: Support adminPlugins resource even if no plugins use it

This commit is contained in:
Robin Ward 2015-02-06 19:26:45 -05:00
parent 7dea65122e
commit 3cfa37b1e6

View File

@ -131,6 +131,11 @@ Discourse.Route.reopenClass({
delete resources.root;
}
// Even if no plugins set it up, we need an `adminPlugins` route
var adminPlugins = 'admin.adminPlugins';
resources[adminPlugins] = resources[adminPlugins] || [Ember.K];
paths[adminPlugins] = paths[adminPlugins] || "/plugins";
var segments = {},
standalone = [];