2015-02-07 06:32:59 +08:00
|
|
|
export default Ember.ArrayController.extend({
|
|
|
|
|
|
|
|
adminRoutes: function() {
|
2015-07-03 01:59:15 +08:00
|
|
|
return this.get('model').map(function(p) {
|
|
|
|
if (p.get('enabled')) {
|
|
|
|
return p.admin_route;
|
|
|
|
}
|
|
|
|
}).compact();
|
2015-02-07 06:32:59 +08:00
|
|
|
}.property()
|
|
|
|
});
|