[Ferret-talk] Trunk and single table inheritance
John Bachir
john at digitalpulp.com
Fri Apr 11 16:09:04 EDT 2008
My colleague Josh was having a hard time getting this email though
either the web or email interfaces, so I'm forwarding it along.
-------------
Hi all,
I'm getting discrepancies between stable and trunk when doing a
search involving single-table inheritance and I can't locate the
problem.
I'm running Rails 2.0.2 with the following (simplified) schema:
class Model < ActiveRecord::Base
acts_as_ferret
end
class ModelSubClass < Model
end
Under AAF/tags/stable, Model.find_by_contents('*') returns all Models
and all ModelSubClasses. Under AAF/trunk, the same query only returns
Models. Has AAF changed its STI model?
The API also indicates that find_by_contents no longer takes
the :models param, and including it does not change the output in
either case -- is there a new way to search across multiple classes?
If I could manually force the query to look at Model and all
subclasses, I could live with the workaround.
Thanks,
Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/ferret-talk/attachments/20080411/1d6e4d9e/attachment-0001.html
More information about the Ferret-talk
mailing list