backport ActiveSupport::Inflector