Closed mshick closed 10 years ago
Wow. You did a good job on rewriting this code. I see no problems after brief look. As for tests, I agree with you, test/include.js is proper place for checking this logic. Thanks!
Okay, I got a simple test in there. Thanks for checking it out!
Ping @1602
@1602 please review?
THANKS! :dancer:
I hope this is a minimally invasive change to support hasAndBelongsToMany relationships when using the
include
style syntax. I dangle an additional reference on the relation model,modelThrough
and use that in the include logic; branching to a secondinclude
call or to returning a normalmodelTo.all
callback.I also handled all the jshint errors I was getting in
lib/include.js
.