(2) Except as provided in subsection (3) of this section, in an action brought under the provisions of this section by a person other than the state or any municipal corporation or political subdivision of the state, the court may award reasonable attorney fees to the prevailing party. Except as provided in subsection (3) of this section, in a civil action brought under the provisions of this section by the state or any municipal corporation or political subdivision of the state:
(a) The court may award reasonable attorney fees to the state or political subdivision of the state if the state or political subdivision prevails in the action; and
(b) The court may award reasonable attorney fees to a defendant who prevails in an action under this section if the court determines that the state or any municipal corporation or political subdivision of the state had no objectively reasonable basis for asserting the claim or no reasonable basis for appealing an adverse decision of the trial court.
(3) The court may not award attorney fees to a prevailing defendant under the provisions of subsection (2) of this section if the action under this section is maintained as a class action pursuant to ORCP 32. [1975 c.255 §9; 1981 c.897 §81; 1995 c.696 §37]