has_many :through => STI #146

DCarper opened this Issue Apr 14, 2011 · 0 comments


None yet
1 participant

DCarper commented Apr 14, 2011

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.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment