Skip to content

Commit

Permalink
Pass arguments to reload method
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeAstapov committed Jan 18, 2019
1 parent 1f4f011 commit 6f60ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/model-ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Model.reopen({

// There is no didReload callback on models, so have to override reload
reload() {
let promise = this._super();
let promise = this._super(...arguments);
promise.then(() => {
if (Tracker.isAutoSaveEnabled(this)) {
this.saveChanges();
Expand Down

0 comments on commit 6f60ae6

Please sign in to comment.