Introducing the ActiveRecord::Base::normalizes API Method in Rails 7.1
Rails 7.1 introduced a new method called ActiveRecord::Base::normalizes which can be used to declare normalizations for attribute values. This can be especially useful for sanitizing user input, ensuring consistent formatting, or cleaning up data from external sources.