Plugins - has_many_polymorphs
Add to favoritesMakes using ActiveRecord polymorphic associations dead easy. Supports self-references and double-side associations.
class Petfood < ActiveRecord::Base
has_many_polymorphs :eaters, :from => [:dogs, :cats, :birds]
end
# this is the join table
class EatersPetfood < ActiveRecord::Base
belongs_to :petfood
belongs_to :eater, :polymorphic => true
end
# this is an example of one of the child classes
class Dog < ActiveRecord::Base
# nothing
end
http://blog.evanweaver.com/pages/code#polymorphs
svn://rubyforge.org/var/svn/fauna/has_many_polymorphs/trunk
Model

I his plugin would work for an "unlimited-sided=associations" like ?
I'm not understanding exactly the whole concept, might be why I'm asking that; but still, is there a way ?
To get this plugin working using Rails 2, you need to remove the words 'withoutcallbacks' from base.rb