fix(belongs-to-many): properly pair association based on the through argument
The code would previously pair association based on the through.model argument of the original options. However options.through.model would generally be undefined since users usually just pass through: Model and the normalization to through.model actually happened on association.through rather than options.through. Normalization now happens on the options set before being assigned to association.through
Showing
with
49 additions
and
27 deletions
-
Please register or sign in to post a comment