[Nitro] Og polymorphic question

Michael Neumann mneumann at ntecs.de
Mon Jun 20 06:51:03 EDT 2005


Hi,

Have a look at this piece of code:

class A
  has_many Comment
end

class B
  has_many Comment
end

class Comment
   ....
end

Now, can I simply add an object of type Comment (and not A::Comment or 
B::Comment) to A and/or B, or not?

Regards,

  Michael



More information about the Nitro-general mailing list