[Nitro] og relation DSL
itsme213 at hotmail.com
Tue Nov 29 10:19:42 EST 2005
p.s. I'm not shy of the library code, just hoping others more knowledgable
can keep me from getting lost in the paths through ann, Relation, etc.
----- Original Message -----
From: "Tim Larson" <tim at keow.org>
To: "General discussion about Nitro" <nitro-general at rubyforge.org>
Sent: Tuesday, November 29, 2005 8:37 AM
Subject: Re: [Nitro] og relation DSL
> On Mon, Nov 28, 2005 at 10:18:07PM -0600, itsme213 wrote:
>> What are the parameter signatures of the macros? The docs (and code) just
>> takes *args, so it's hard to figure out.
> Don't know, dig in the library code...
>> How can I do the following? Specifically, how can I name the inverse
>> "belongs_to" distinctly for :good_bs and :bad_bs?
>> class A
>> has_many :good_bs, B
>> has_many :bad_bs, B
> class A
> has_many :good_bs, B, :foreign_name => :some_foreign_key_name
> has_many :bad_bs, B, :foreign_name => :some_other_foreign_key_name
> --Tim Larson
> Nitro-general mailing list
> Nitro-general at rubyforge.org
More information about the Nitro-general