Closed lesliev closed 2 years ago
Hi Leslie :) I agree that the internals of ActiveRecord + Joiner are hard to get one's head around - it's a big part of why I extracted the logic from TS into Joiner instead, so it's at least more focused.
It also means that I can update Joiner for newer ActiveRecord releases without needing to change TS - and I think that could help in this case. Can you try bundle update joiner
- which should take you to 0.6.0
- and see if that helps matters?
Yes, works perfectly! Thanks so much!
Wonderful :)
Hi!
I'm busy upgrading from Rails 5.2.8.1 to 6.1.6.1 and the call to
ThinkingSphinx::Test.start
in myspec/support/sphinx.rb
is raising an error on Rails 6. It was working fine on Rails 5.It ultimately comes down to
association_for(path).tables
being nil over here, but I don't know enough about these internals to understand where this tables array gets set up and why it might be nil:association_for(path)
looks like this:The complete backtrace to the error is:
Please let me know if there's any other way I can help you to help me to figure this out!