GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Hi guys, I'm using Rails 2.3.5 and searchlogic 2.4.14
I'm trying to build a search form to specify conditions on a has many through relationship, where the join model is actually inheriting from another model via STI.
The query that is generated never specifies the type so it's actually hitting the superclass, not the subclass.
Here is a gist with relevant code and query. https://gist.github.com/69ded6c1f814c8276d64
I tried looking in the source to see if I could work something out but didn't really get anywhere.