How to determine if child rows added?

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

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!