Frederick Cheung wrote:
> On Apr 8, 9:52�am, Greg Willits <[email protected]>
> wrote:
>> Frederick Cheung wrote:
>> > On Apr 8, 5:35 am, Greg Willits <[email protected]>
>> > wrote:
> 
>> So, I dunno. But shouldn't that second finder case (without :include)
>> not be returning :assets nor :extras? I end up using debug() to output
>> the results to confirm what is actually being loaded, and I get those
>> two associations, but no :pages data. Seems weird.
>>
> Random question: are you doing this from the console or is this output
> from an app. Are you sure the load is coming from the find and not
> from the association been accessed subsequently (eg put a log
> statement after the find(..., :include) ? )


@#$#! After writing a big long thing to prove there was no other action 
taking place, and taking one more wider look before sending it to be 
sure I wasn't making an idiot of myself, I just scrolled down a little 
further in the model to re-discover an after_find I wrote which would in 
fact touch assets & extras.

I had just so compartmentalized the :include thing in my mind, I wasn't 
remembering after_find.

Egads. So sorry to waste your time Fred. But proving there was no log 
statement question pushed me to at least solve the (not so puzzling) 
puzzle. Thanks.

-- gw




-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to