My colleague Josh was having a hard time getting this email though
either the web or email interfaces, so I’m forwarding it along.
I’m getting discrepancies between stable and trunk when doing a
search involving single-table inheritance and I can’t locate the
I’m running Rails 2.0.2 with the following (simplified) schema:
class Model < ActiveRecord::Base
class ModelSubClass < Model
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.