-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Association building broken with upgrade to 0.7.0 #232
Comments
I can reproduce without acts_as_paranoid. It seems ActiveRecord's problem, not this gem. When you add scope on association, it just returns nil. |
I'm not sure I follow that logic. This bug only occurs after upgrading |
I've checked and the behavior in My preliminary understanding is that unscoped associations automatically set up the inverse relation, whereas scoped ones do not. That's why the change in #147 broke the old behavior: Use of In a sense, @turnon is right: given the implementation of |
A fix for this has just been released in version 0.8.1. |
When upgrading this gem from
0.6.3
to0.7.0
, I noticed a regression when building associations without saving them.I think it was caused by this Changelog entry:
What fails is e.g. the following scenario:
The above example does return the
order
in0.6.3
, but not in0.7.0
. It does work when removing thewith_deleted: true
option from the association.I will open a PR with a failing spec 🙂
The text was updated successfully, but these errors were encountered: