[Nitro] Og polymorphic question

George Moschovitis george.moschovitis at gmail.com
Mon Jun 20 07:01:25 EDT 2005


You cannot add a 'standalone' Comment object. Is there a problem with this?
-g.


On 6/20/05, Michael Neumann <mneumann at ntecs.de> wrote:
> 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
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
> 


-- 
http://nitro.rubyforge.org
http://www.joy.gr




More information about the Nitro-general mailing list