Replace findProperty and filterProperty with findBy and filterBy

This commit is contained in:
Robin Ward
2016-10-26 15:44:36 -04:00
parent 68b559d501
commit 7953a53cc5
35 changed files with 53 additions and 54 deletions

View File

@@ -1,7 +1,7 @@
export default Ember.Route.extend({
model(params) {
const allSteps = this.modelFor('application').steps;
const step = allSteps.findProperty('id', params.step_id);
const step = allSteps.findBy('id', params.step_id);
return step ? step : allSteps[0];
},