[Nitro] [PATCH] Fix joins_many
George Moschovitis
george.moschovitis at gmail.com
Sun May 20 07:24:08 EDT 2007
Thanks for the patch I will have a look at this later today... There is also
another patch pending...
-g.
On 5/20/07, Brian Davis <brian.william.davis at gmail.com> wrote:
>
> Attached is a patch that allows multiple many-to-many relations with
> the same component classes. It allows for situations like the following:
>
> class User
> ...
> many_to_many User
> many_to_many :friends, User
> many_to_many :enemies, User
> many_to_many :family, User
> ...
> end
>
> It does this by appending the join name to the tables of named join
> relations. As an illustration, the first relation above would describe
> a table named 'ogj_user_user', while the second relation would describe
> a table named 'ogj_user_user_friends').
>
> This passes what few specs we've got for Og, so please let me know if
> it kills your cat or burns down your house.
>
> Brian
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>
>
--
http://georgeandstella.com
http://blog.gmosx.com
http://cull.gr
http://www.joy.gr
http://nitroproject.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20070520/1a5c3831/attachment.html
More information about the Nitro-general
mailing list