Weyl scaled the metric for curvature in general relativity by exp(iX) where X is a function of the electromagnetic field (the periodic real plane solutions to the complex exponent do the quantization). [Weyl, ???Gravitation und Elektrizitat???, Sitzungsberichte der Preussischen Akademie der Wissenschaften, v. 26 (1918), pp. 465-480.]