[Nitro] [PATCH] Fix joins_many
Brian Davis
brian.william.davis at gmail.com
Sun May 20 06:32:08 EDT 2007
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: joins_many.patch.tar.gz
Type: application/x-gzip
Size: 11606 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/nitro-general/attachments/20070520/a52eddd8/attachment.gz
More information about the Nitro-general
mailing list