Modified the attached_atom() method to handle multiple models.
Authored by: bugman 2008-04-21
Parent: [r5904]
Child: [r5906]