不要怂,就是干,撸起袖子干!

Commit 52e38173 by Mick Hansen

Fix deprecation warning bug, closes #2876

1 parent dad54ad6
Showing with 1 additions and 1 deletions
...@@ -42,7 +42,7 @@ module.exports = (function() { ...@@ -42,7 +42,7 @@ module.exports = (function() {
this.through = true; this.through = true;
} }
if (this.through) { if (this.through === true) {
deprecated('belongsToMany: not defining through or defining through as true has been deprecated, please provide a string or a model'); deprecated('belongsToMany: not defining through or defining through as true has been deprecated, please provide a string or a model');
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!