The requirements for my Web app have changed and now instead of destroying an object and all children when it expires, I need to destroy the parent object when the last child is destroyed. Is there a builtin or gem to do this? Is it better to check the cached count in the parent (reference counting) and destroy it when drops to zero when each child is destroyed or periodically scan for parents with no children and destroy them then (garbage collection)? TIA, Jeffrey -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.