Replace with gsub! in ActiveSupport::Inflector.
Merge pull request #13257 from eshira/optimize-gsub

Replace with gsub! in ActiveSupport::Inflector