Andrew Bloom wrote: > Maybe I'm missing something, but it doesn't sound like you need > acts_as_taggable or single table inheritance. I think you will get the > desired result by setting up the ObjectRelations model as follows: > > class ObjectRelations < ActiveRecord::Base > belongs_to :linkfrom, :polymorphic => true > belongs_to :linkto, :polymorphic => true > end > > class User < ActiveRecord::Base > has_many :objectrelations, :as => :linkto > has_many :objectrelations, :as => :linkfrom > end > > On Dec 8, 5:39�am, Vincenzo Ruggiero <[EMAIL PROTECTED]
Agreed... http://wiki.rubyonrails.org/rails/pages/ManytoManyPolymorphicAssociations -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

