A married minor may bring or defend a suit for divorce, separate maintenance and support, temporary maintenance or support, custody of children, or any other action involving marital rights without the necessity of a next friend or guardian ad litem, and a judgment in such cases shall be as effective as if the minor were an adult.