From a5f44cb9b278919ff2c648ff78f2aee87e556a9a Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Tue, 12 Aug 2025 12:49:06 +1000 Subject: [PATCH] Update inflection config to Rails 7.0 template --- config/initializers/inflections.rb | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb index e630d3121e..beb90fd018 100644 --- a/config/initializers/inflections.rb +++ b/config/initializers/inflections.rb @@ -1,13 +1,20 @@ # Be sure to restart your server when you modify this file. -# Add new inflection rules using the following format -# (all these examples are active by default): -# ActiveSupport::Inflector.inflections do |inflect| -# inflect.plural /^(ox)$/i, '\1en' -# inflect.singular /^(ox)en/i, '\1' -# inflect.irregular 'person', 'people' +# Add new inflection rules using the following format. Inflections +# are locale specific, and you may define rules for as many different +# locales as you wish. All of these examples are active by default: +# ActiveSupport::Inflector.inflections(:en) do |inflect| +# inflect.plural /^(ox)$/i, "\\1en" +# inflect.singular /^(ox)en/i, "\\1" +# inflect.irregular "person", "people" # inflect.uncountable %w( fish sheep ) # end + +# These inflection rules are supported but not enabled by default: +# ActiveSupport::Inflector.inflections(:en) do |inflect| +# inflect.acronym "RESTful" +# end + Rails.autoloaders.each do |autoloader| autoloader.inflector.inflect( "stripe_sca" => "StripeSCA"