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

[Cleanup] eslint prefer-spread #808

Merged
merged 1 commit into from
Nov 17, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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