Fix NumericalityValidator on object responding to `to_f`: by Edouard-chin · Pull Request #35010 · rails/rails

Fix NumericalityValidator on object responding to to_f: If you had a PORO that acted like a Numeric, the validator would work correctly because it was previously using Kernel.Float which is impli...