Use record.update instead of the custom assign_attributes function