Release 20 of the
has_many_polymorphs plugin is available.
clearmethod on the polymorphic collection
clearon all individual subcollections
An undocumented API was changed.
With double polymorphic relationships (say,
foods) instead of using
.corn_as_eater to access the Corn subcollection, you now need to use
.food_corn. Referencing the join tables still uses
as. This better parallels the general collection API.
goodenough appeared on IRC and made a report:
class Hamster < ActiveRecord::Base has_many_polymorphs :toys, :from => [:wheels, :balls], :through => :hamsters end
No join table! More to come.