On Dec 1, 12:14 pm, "Michael Koziarski" <[EMAIL PROTECTED]> wrote:
> > As for the bi-directionality of in-memory AR objects, you should check
> > out the parental-control plugin, which while incomplete, covers quite
> > a bit of what is needed to support bi-directional associations in
> > rails:
> >http://github.com/h-lame/parental_control/tree/master
>
> Nice!  I'd love to see something along these lines baked right in to 2.3
>
> --
> Cheers
>
> Koz


Three cheers to that! h-lame has done some really good work getting
the parental_control plugin working, but I think it would make
hammering out the trickier bits much easier if it was part of core. As
it stands now, without something like parental_control, if you're
using eager includes to avoid 1+N query problems, you have to write
your code to only ever use associations through the direction in which
they were loaded. Which, IMO, is one nasty leak of encapsulation in
the ORM.

-ac
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to