When a spouse has deserted the family, the deserted spouse may prosecute or defend, in the name of the absent spouse, any action which the absent spouse might have prosecuted or defended, and shall have the same powers and rights therein as the absent spouse might have had.