update_attributes was deprecated