delivered the opinion of the court.
“In pleading an ordinance or enactment of any incorporated city, town, or village, or a right derived therefrom, * * it shall be sufficient to refer to such ordinance or enactment by its title and the date of its approval, and the court shall thereupon take judicial notice thereof.”
This does not provide an exclusive rule of pleading, nor deprive the pleader of the right to state the provisions of either a? charter or an ordinance about which the question is raised. In Birnie v. La Grande, 78 Or. 531 (153 Pac. 415), we held that the court would not take judicial notice of initiative charters of cities and towns. Under Section 729, subdivision 3, L. O. L., the courts assume knowledge of “public and private official acts of the legislative, executive, and judicial departments of this state, and of the United States. ’ ’
The legislation in question can be justified, if at all, only by virtue of the quantum of the police power confided to the city by the legislative department of the government or by the initiative of its own people. Its charter is the limit of a city’s prerogative, and its authority to pass an ordinance must be expressed or necessarily implied: Corvallis v. Carlile, 10 Or. 139
“The courts are not bound by mere forms, nor are they to be misled by mere pretenses. They are at liberty- — indeed, are under a solemn duty — to look at the substance of things, whenever they enter upon the inquiry whether the legislature has transcended the limits of its authority. If, therefore, a statute, purporting to have been enacted to protect the public health, the public morals, or the public safety, has no real or substantial relation to those objects, or is a palpable invasion of rights secured by the fundamental law, it is the duty of the courts to so adjudge, and thereby give effect to the constitution.”
To the same effect is State v. Redmon, 134 Wis. 89 (114 N. W. 137, 126 Am. St. Rep. 1003, 15 Ann. Cas. 408, 19 L. R. A. (N. S.) 229); Connolly v. Union Sewer Pipe Co., 184 U. S. 540, 560 (46 L. Ed. 679, 22 Sup. Ct. Rep. 431); State v. Wright, 53 Or. 344 (100 Pac. 296, 21 L. R. A. (N. S.) 349, note); State v. Miller, 54 Or. 381 (103 Pac. 519); Spaulding v. McNary, 64 Or. 491 (130 Pac. 391, 1128); Kellaher v. City of Portland, 57 Or.
“The greater difficulty centers about the classification. It may not be arbitrary, and requires something more than a mere designation by such characteristics as will serve to classify. The mark of distinction must be something of substance, some attendant or inherent peculiarity calling for legislation suggested by natural reason of different character to subserve the rightful demands of governmental needs. So that, when objects and places become the subject of legislative action, and it is sought to include some and exclude others, the inquiry should be whether the distinctive characteristics upon which it is proposed to found different treatment are such as in the nature of things will denote, in some reasonable' degree, a practical and real basis for discrimination.”
The principle is concisely stated by Mr. Chief Justice Corliss in Edmonds v. Herbrandson, 2 N. D. 270 (50 N. W. 970, 14 L. R. A. 725):
“The classification must be natural, not artificial. It must stand upon some reason, having regard to the character of the legislation.”
Again, Mr. Justice Beasley, in State v. Hammer, 42 N. J. Law, 440, states the doctrine thus:
“But the true principle requires something more than a mere designation by such characteristics as will serve to classify, for the characteristics which thus serve as the basis of classification must be of such a nature as to mark the objects so designated as pecu*419 liarly requiring exclusive legislation. There must be substantial distinction, having a reference to the subject matter of the proposed legislation, between the objects or places embraced in such legislation and the objects or places excluded. The marks of distinction on which the classification is founded must be such, in the nature of things, as will, in some reasonable degree at least, account for or justify the restriction of the legislation.”
See, also, State ex rel. v. Swigert, 59 Or. 132 (116 Pac. 440); Palmberg v. Kinney, 65 Or. 220, 228 (132 Pac. 538); Lorntsen v. Union Fisherman’s Co., 71 Or. 540 (143 Pac. 621); Pacific Title & Trust Co. v. Sargent, 73 Or. 485 (144 Pac. 452).
“No law shall be passed granting to any citizen or class of citizens, privileges or immunities which, upon the same terms, shall not equally belong to all citizens”: Article I, Section 20, of the Oregon Constitution.
In our judgment the classification embraced in the ordinance is arbitrary and unfair, and no substantial distinction exists between those mentioned and those omitted, having in view the object to be attained by the charter, “to secure the peace and good order of the
The ordinance is radically at fault in its classification, and for this reason, if for no other, the court was wrong in sustaining the demurrer to the complaint. It is not necessary to consider whether it would be a reasonable manifestation of the police power to enact such an ordinance and make it apply to all the trades omitted from the measure here involved.
The decree is reversed and one entered here according to the prayer of the complaint.
Reversed. Decree Rendered.