fixed restore recursive association for rails 3