Use acts_as_tree gem. Remove acts_as_tree from FriendEmail.