From 5a43da838b5cae85fa9f61a3a80f2e976042bb51 Mon Sep 17 00:00:00 2001 From: Bj Date: Wed, 16 Nov 2016 20:03:12 -0500 Subject: [PATCH] [Cleanup] eslint `prefer-spread` --- app/routes/abstract-module-route.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes/abstract-module-route.js b/app/routes/abstract-module-route.js index 56fee45213..e541f26eeb 100644 --- a/app/routes/abstract-module-route.js +++ b/app/routes/abstract-module-route.js @@ -96,9 +96,9 @@ export default Ember.Route.extend(UserSession, AuthenticatedRouteMixin, { return new Ember.RSVP.Promise(function(resolve, reject) { let promises = this.additionalModels.map(function(modelMap) { if (modelMap.findArgs.length === 1) { - return this.store.findAll.apply(this.store, modelMap.findArgs); + return this.store.findAll(...modelMap.findArgs); } else { - return this.store.find.apply(this.store, modelMap.findArgs); + return this.store.find(...modelMap.findArgs); } }.bind(this)); Ember.RSVP.allSettled(promises, `All additional Models for ${this.get('moduleName')}`).then(function(array) {