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) ? )
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.
@#$#! 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.