I've created a message board system thats completely polymorphic, it
can be attached to pretty much any other object in my program and it
just works.
So I want to be able to search for all topics, within a particular
board. When it was tied to just a band_id this was easy as
has band_id
:with => { :band_id => 5 }
Now, topics have a discussable_id and a discussable_type. It seems
that conditions/attributes must be an integer of some kind - so how
can I filter based on that relationship?
Thanks..
--
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/thinking-sphinx?hl=en.