-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add support for Active Record 5.2 #87
Conversation
Okay, seems like this all comes down to activerecord-hackery/polyamorous#37. |
@rzane master branch is already usable? i can't use it yet. gem "join_dependency", github: "rzane/join_dependency"
gem "baby_squeel", github: "rzane/baby_squeel"
|
@rainerborene, I think you forgot to specify the branch. It should be: gem "join_dependency", github: "rzane/join_dependency"
gem "baby_squeel", github: "rzane/baby_squeel", branch: "52-support" However, this PR hasn't been merged yet for a good reason. Polymorphic associations are broken upstream (in the polyamorous gem), as documented in this issue: activerecord-hackery/polyamorous#37. So, if you query a polymorphic association, the wrong record might be returned. |
Okay, I am also pointing to this branch. @rzane, feel free to @ message me when it's ready, or if there's anything else I can do to help!!! |
Also @rzane just going to say that I tried to point to your branch but it broke because of the sqlite3 dependency on |
Oh whoops, that was an accident. Sqlite is definitely not a real dependency. I'll fix that today. |
Okay, I'm going to merge this. The remaining issue (re: polymorphic associations) is not a Baby Squeel issue, and therefore, it doesn't make sense not to release this. For reference, this is the bug: activerecord-hackery/polyamorous#37. @Schwad, that sqlite dependency issue should be resolve now as well. To anyone who uses Baby Squeel or Ransack and uses polymorphic associations, I wouldn't recommend upgrading to 5.2 until that issue is resolved. |
@rzane Awesome!!! Thank you so much!!! |
Much appreciated @rzane! 👍 |
🎉 This has been much easier than I had expected!
There are only two remaining issues:
BabySqueel::Association#!
spec is brokenFixes #85.