2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

Add a store so we can start using ES6 modules for models, finally.

This commit is contained in:
Robin Ward 2015-02-10 12:14:23 -05:00
parent 8d46de4819
commit d8c616a68a
7 changed files with 99 additions and 32 deletions

View file

@ -1,6 +1,6 @@
export default Ember.Route.extend({
model() {
return Discourse.ajax("/admin/plugins.json").then(res => res.plugins);
return this.store.findAll('plugin');
},
actions: {