Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #808 from btecu/prefer-spread
Browse files Browse the repository at this point in the history
[Cleanup] eslint `prefer-spread`
  • Loading branch information
jkleinsc authored Nov 17, 2016
2 parents daaec08 + 5a43da8 commit ae0b162
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/routes/abstract-module-route.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ae0b162

Please sign in to comment.