hummingbird-me/hummingbird

View on GitHub
frontend/app/controllers/reviews/index.js

Summary

Maintainability
A
0 mins
Test Coverage
import Ember from 'ember';

export default Ember.ArrayController.extend({
  needs: "anime",
  anime: Ember.computed.alias('controllers.anime'),
  sortProperties: ['wilsonScore'],
  sortAscending: false,

  // Legacy -- remove after Ember transition is complete.
  newReviewURL: function() {
    return "/anime/" + this.get('anime.id') + "/reviews/new";
  }.property('anime.id')
  // End Legacy
});