Nevermind... I just thought I''d try the obvious...and of course Ruby
came through...
parent_object.child_rows.loaded?
This returns a boolean one way or the other... hope my morning
fogginess helps someone else out!
On Oct 29, 9:38 am, peri
<mtperit...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hey all -
> I have an odd ball situation where I want to check the parent
> ActiveRecord object to see if the child rows have been loaded already
> or not. I''m sure the answer is probably staring me right in the
> face... but it''s Monday and my brain isn''t firing all of
it''s pistons
> yet!
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---