Update Activerecord.php