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