2014-09-25 11:32:08 -04:00
|
|
|
import UserField from 'admin/models/user-field';
|
|
|
|
|
2014-10-15 14:33:22 -04:00
|
|
|
export default Discourse.Route.extend({
|
2014-09-25 11:32:08 -04:00
|
|
|
model: function() {
|
2015-07-30 14:52:53 -04:00
|
|
|
return this.store.findAll('user-field');
|
2014-09-25 11:32:08 -04:00
|
|
|
},
|
|
|
|
|
|
|
|
setupController: function(controller, model) {
|
2015-07-30 14:52:53 -04:00
|
|
|
controller.setProperties({ model, fieldTypes: UserField.fieldTypes() });
|
2014-09-25 11:32:08 -04:00
|
|
|
}
|
|
|
|
});
|