Skip to content
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

has_many :through => STI #146

Open
DCarper opened this issue Apr 14, 2011 · 0 comments
Open

has_many :through => STI #146

DCarper opened this issue Apr 14, 2011 · 0 comments

Comments

@DCarper
Copy link

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.

Dan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant