> Without an identity map this is very difficult to fix.  The correct
> fix for this bug would require full bi-directional has_many and
> belongs/to associations, and could take a bit of work.
>
> If someone wants to investigate this, I'd be happy to lend a helping
> hand.  On the other hand, there are some other changes brewing in that
> area now, so perhaps it's worth waiting a bit?

I just removed @owner[counter_cache_name] from the check. If the
parent does not hold the counter_cache_column then counter_cache_name
would be nil. Since this is tested in the if statement too it should
not be a problem. The AR test suite passes without a failure...
Please give the fix +1
(http://dev.rubyonrails.org/ticket/10804)
_jan
--~--~---------~--~----~------------~-------~--~----~
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