I have the following code in my Index route. How do I limit the number of records returned? I have this._super(controller, model) set in the route's setupController.
import Ember from 'ember';
export default Ember.Route.extend({
model: function() {
return Ember.RSVP.hash({
articles: this.store.find('article'),
categories: this.store.find('category', {limit: 3})
});
},
setupController: function(controller, model) {
// No records are retrieved without this
this._super(controller, model);
}
});