[Nitro] has_one fails with preceding property

itsme213 itsme213 at hotmail.com
Fri Jun 30 22:19:39 EDT 2006

"Bryan Soto" <bryan.a.soto at gmail.com> wrote in message

> I think you can do this:
> class A < Og::Entity
>  has_one :b, B
> end
> and things will work as you expect. Again, it's explicit though.

I am happier with explicit than with invisible but confusing magic. If 
#property can enchant, why can't #has_one and the rest of the family?

Sadly this one does not work.

class A < Og::Entity
  belongs_to :b, B

I don't get the setter #b=

... undefined method `b=' for ... (NoMethodError)

More information about the Nitro-general mailing list