hummingbird-me/hummingbird

View on GitHub
frontend/app/routes/user/following.js

Summary

Maintainability
A
0 mins
Test Coverage
import Ember from 'ember';
import Paginated from '../../mixins/paginated';
import setTitle from '../../utils/set-title';

export default Ember.Route.extend(Paginated, {
  fetchPage: function(page) {
    return this.store.find('user', {
      followed_by: this.modelFor('user').get('id'),
      page: page
    });
  },

  afterModel: function() {
    return setTitle("Followed by " + this.modelFor('user').get('username'));
  }
});