Replace deprecated update_attribute method