Update ActiveRecord.php