delivered the opinion of the Court.
*299 This appeal challenges a judgment of dismissal of a personal injury action in the district court of El Paso County. The trial court ruled that the action, brought against three deputy sheriffs of El Paso County, was barred completely by a one-year statute of limitations. C.R.S. 1963, 87-1-3. 1 We reverse.
Appellant (plaintiff bplow) was attending a riot-control class held for police officers, deputy sheriffs, and prospective deputy sheriffs. Two of the defendants-appellees, Taylor and Schaefer, both deputy sheriffs, were acting as instructors of the class. Defendant-appellee Clausen, a deputy sheriff, was also a student. In the course of class maneuvers, a service revolver worn by Clausen fell from his person and discharged as it hit the ground, seriously injuring appellant.
To the complaint the defendants filed a written motion for dismissal on the ground that the action was barred by the statute, which reads as follows:
“One year — sheriffs’ and coroners’ liabilities. — All actions against sheriffs and coroners upon any liability incurred by them by the doing of any act in their official capacity or by the omission of any official duty, except in relation to accounting to the county for fees earned or collected, and except for escapes, shall be brought within one year after the cause of action accrues, and not after that period.”
At the hearing on the motion, no testimony was presented. Contending that the statute of limitations is an affirmative defense, appellant objected to the court procedure and argued that a plea in bar by reason of a statute of limitations cannot be raised by a motion to dismiss. It was contended that evidence was available which would remove defendants from the statutory provisions, and that such evidence could properly be presented only on trial of the issue if raised in the answer. Whereupon, the trial court made the following statement:
“Well, I really can’t actually rule as to an affirmative defense on a motion to dismiss unless I treat this as a motion for summary judgment.”
The court then by written order found that deputy sheriff Clausen “was acting within the scope of his duties at the time of the accident,” that the statute of limitations is a complete defense to the lawsuit, and entered judgment for defendants.
We hold that it was error for the trial court to enter judgment in this action based solely upon argument of counsel on a motion to dismiss. Two other arguments are rejected but will be discussed.
I.
The appellant has persuasively argued that with the circumstances present in this case the court erred in deciding the applicability of the *300 statute of limitations on a motion to dismiss.
It has been generally held in a number of cases that a statute of limitations, if relied upon, must be affirmatively set forth in an answer. “A plea in bar by reason of the statute of limitations cannot bé raised by motion to dismiss. It is a defense which may or may not be relied upon. If relied upon it must be pleaded as an affirmative defense . . . .”
Fletcher v. C. & W. Ry.,
Appellees rely on the case of
Cox v. Pearl Invest. Co.,
The statement by the court that it would treat the motion as asking for summary judgment did not meet the problem. A summary judgment is proper only where there is no genuine issue as to any material fact, which may be indicated by the pleadings, affidavits, depositions and/or admissions, and where the moving party is entitled to judgment as a matter of law. C.R.C.P. 6.
Abrahamsen v. Mt’n States T & T, 177
Colo. 422,
II.
Plaintiff has also challenged the statute as being unconstitutional special legislation. We find the statute valid.
The classification of occupations and professions for limitation or regulation is a matter for legislative determination.
McCarty
v.
Goldstein,
“The provision is evidently framed in the interest of the officers mentioned, and their official bondsmen. Its purpose is to prevent annoyance and injustice through the prosecution against them of stale demands predicated upon official neglect or other misconduct.”
In addition to this interpretation, a caution was added:
“This purpose is eminently wise; but, in our judgment, the statute should, if possible, be so construed as that, while the persons designated are fairly protected, litigants may not be made thereby to suffer grievous and remediless wrong.”
In Cramer our court sought to make equitable adjustment for the needs of all parties. Following that precedent, certain elemental determinations must be made which again point up the need to frame the issue for trial. To decide if the one-year statute of limitations applies in any situation, it must first be determined whether the officer was acting in his official capacity. This is mandated by the limited application of the statute to acts “in their [the sheriffs’] official capacity or by the omission of any official duty.” We must assume that the legislature, in using the term “official, ” knew the distinction between official acts and acts done merely under the color of office.
In Colorado, an official act basically is one done in the actor’s official capacity
and
under color of his office.
Corder
v.
People,
A 1942 decision of the Second Circuit Court of Appeals analyzed the official acts within a short statute of limitations. In
Ingo
v.
Koch,
“(1) Conduct which is lawful and non-actionable, because entirely within sheriffs official authority, (2) unlawful conduct, actionable, but sufficiently close to being ‘official’ so that suit is barred if not brought within one year, (3) unlawful conduct, so far from being ‘official’ that, for purpose of limitations, it is treated like that of an ordinary non-official person.”
Thus, in order to classify an act as official and protected by the statute of limitations, or non-official and clearly outside of the duties of an office (personal act), one must first consider the type of activity involved, and then consider the intent, purpose, and knowledge of the actor. Each case must be decided on the factual situation involved therein.
*302 III.
Plaintiff also contended the statute has no application because the defendants were not sheriffs protected by the limitation.
We hold the term “sheriff’ is used in its generic sense and includes the whole class of officers performing the duties of the office of sheriff. Thus, there is no merit in appellant’s argument that to include deputy sheriffs within the statute’s protection impermissibly extends its coverage.
A deputy sheriff is one appointed to act for the sheriff.
“Each [officer] may appoint as many deputies as he may think proper . . . . Persons may also ... be deputized by such sheriff ... to do particular acts. . . .” C.R.S. 1963, 35-5-5. 2
The judgment is reversed and the cause remanded to the district court for further proceedings consonant with the views expressed herein.
MR. CHIEF JUSTICE PRINGLE concurs as to points I and II and dissents as to point III.
MR. JUSTICE ERICKSON concurs as to point I and dissents as to points II and III.
