added detach method for record class, refs #164