[Nitro] has_one fails with preceding property

TRANS transfire at gmail.com
Fri Jun 30 23:47:54 EDT 2006


On 6/30/06, itsme213 <itsme213 at hotmail.com> wrote:
>
> "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
> end

Does this?

  class A
    is EntityMixin
    belongs_to :b, B
  end

Personally I'm still all in favor of explict like:

  class A < Og::Object
    belongs_to :b, B
  end

  class A
    is Og::Able
    belongs_to :b, B
  end

I wonder waht happens not that attr_reader :x, String can be used
instead of prop_reader? etc.

T.


More information about the Nitro-general mailing list