On Tue, Aug 19, 2008 at 5:10 PM, Xavier Noria <[EMAIL PROTECTED]> wrote:

> and no template gets rendered). My conjecture is that the call to
> #size resets the proxy somehow.
>
> I may complete the walkthrough later but that's what I've got by now.
> Next target is count_records.

Bingo, I could continue a few minutes:

        def count_records
          # ...
          @target = [] and loaded if count == 0
          # ...
        end

I think the fix is just to delete that line, looks like premature
optimization, though I've not tested whether deleting it breaks
something else.

--~--~---------~--~----~------------~-------~--~----~
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