Deprecate old add* methods #118

Merged
fsmanuel merged 4 commits from deprecate/old-add-methods into master 2019-05-01 18:12:19 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 1199b053fe - Show all commits

View File

@ -60,7 +60,7 @@ class Contribution extends Record {
addContribution () {
deprecate('The method: `addContribution` is deprecated use `add` instead');
this.add(...arguments);
return this.add(...arguments);
}
}

View File

@ -39,7 +39,7 @@ class Proposal extends Record {
addProposal () {
deprecate('The method: `addProposal` is deprecated use `add` instead');
this.add(...arguments);
return this.add(...arguments);
}
}