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

Commit cf0fc069 by Overlook Motel

comment on include without array

1 parent 4d5380cc
Showing with 1 additions and 0 deletions
...@@ -1343,6 +1343,7 @@ module.exports = (function() { ...@@ -1343,6 +1343,7 @@ module.exports = (function() {
options.hasSingleAssociation = false options.hasSingleAssociation = false
options.hasMultiAssociation = false options.hasMultiAssociation = false
// if include is not an array, wrap in an array
if (!Array.isArray(options.include)) { if (!Array.isArray(options.include)) {
options.include = [options.include] options.include = [options.include]
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!