aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/inflections.rb
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-02-10 08:50:06 +0100
committerYves Senn <yves.senn@gmail.com>2014-02-10 08:51:35 +0100
commit07c70245a128cfe42f134be8759963dc98f1a63e (patch)
tree89752011b6fbf3bba221dbbc5335309d9e605790 /activesupport/lib/active_support/inflections.rb
parent3a428f38b2f9a1e995070a4a049645b622c7094a (diff)
downloadrails-07c70245a128cfe42f134be8759963dc98f1a63e.tar.gz
rails-07c70245a128cfe42f134be8759963dc98f1a63e.tar.bz2
rails-07c70245a128cfe42f134be8759963dc98f1a63e.zip
docs, mention that the current inflection rules are frozen. [ci skip]
Closes #13993.
Diffstat (limited to 'activesupport/lib/active_support/inflections.rb')
-rw-r--r--activesupport/lib/active_support/inflections.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/inflections.rb b/activesupport/lib/active_support/inflections.rb
index 4ea6abfa12..d844e70750 100644
--- a/activesupport/lib/active_support/inflections.rb
+++ b/activesupport/lib/active_support/inflections.rb
@@ -1,5 +1,9 @@
require 'active_support/inflector/inflections'
+# Define the standard inflection rules. These define a starting point for
+# new projects and are not considered complete. The current set of inflection
+# rules is frozen. This means, we do not change them to become more complete.
+# This is a safety measure to keep existing applications from breaking.
module ActiveSupport
Inflector.inflections(:en) do |inflect|
inflect.plural(/$/, 's')