Current section
Files
Jump to
Current section
Files
priv/ember/app/routes/application.js
var ApplicationRoute;
import Ember from "ember";
ApplicationRoute = Ember.Route.extend({
model: function(_params) {
return this.get('store').findRecord('stat', 'all');
},
actions: {
reloadStats: function() {
return this.get('store').findRecord('stat', 'all').then(function(stats) {
return stats.reload();
});
}
}
});
export default ApplicationRoute;