fix set_parent on rails 3.2 with attr_accessible