2019-10-15 06:50:30 -04:00
|
|
|
import AdminProduct from "discourse/plugins/discourse-patrons/discourse/models/admin-product";
|
|
|
|
import Group from "discourse/models/group";
|
2019-10-14 18:40:49 -04:00
|
|
|
|
|
|
|
export default Discourse.Route.extend({
|
2019-10-15 06:50:30 -04:00
|
|
|
model(param) {
|
|
|
|
const product = AdminProduct.create();
|
|
|
|
const groups = Group.findAll({ ignore_automatic: true });
|
|
|
|
|
|
|
|
return Ember.RSVP.hash({ product, groups });
|
2019-10-14 18:40:49 -04:00
|
|
|
}
|
|
|
|
});
|