{"size": 507, "ext": "js", "max_stars_repo_path": "app/routes/polls/index.js", "max_stars_repo_name": "Matthijsy/amber-ui", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/routes/polls/index.js", "max_issues_repo_name": "Matthijsy/amber-ui", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/routes/polls/index.js", "max_forks_repo_name": "Matthijsy/amber-ui", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.28, "max_line_length": 78, "alphanum_fraction": 0.6094674556}
import { ApplicationRoute } from 'alpha-amber/routes/application/application';

export default class MailAliasIndexRoute extends ApplicationRoute {
  breadCrumb = { title: 'Polls' }

  get pageActions() {
    return [
      {
        link: 'polls.new',
        title: 'Nieuwe Poll',
        icon: 'plus',
        canAccess: this.can.can('create polls')
      }
    ];
  }

  canAccess() {
    return this.can.can('show polls');
  }

  model(params) {
    return this.store.queryPaged('poll', params);
  }
}
