(2) The prevailing party in any action brought pursuant to subsection (1) of this section shall be allowed, in addition to the costs and disbursements otherwise prescribed by law, a reasonable sum for attorney fees at trial and on appeal for the prosecution or defense of such action. [1963 c.514 §§4,5; 1981 c.897 §76; 1995 c.658 §112]