A person ratifying any unauthorized act done on his behalf ratifies the whole of the transaction of which such act formed a part.