aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/inflections.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-06-23 16:47:47 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-06-23 16:47:47 +0000
commit46b0e7d1d77c77d013235e3bf99d1afb89513cc9 (patch)
treeec6e353610a5feb717e9e1639b914e1a548d1cca /activesupport/lib/active_support/inflections.rb
parent73fba4faf13394540489063247a887a0d396af2f (diff)
downloadrails-46b0e7d1d77c77d013235e3bf99d1afb89513cc9.tar.gz
rails-46b0e7d1d77c77d013235e3bf99d1afb89513cc9.tar.bz2
rails-46b0e7d1d77c77d013235e3bf99d1afb89513cc9.zip
Added support for pluralization with a different starting letter than the singular version (cow/kine) (closes #4929) [norri_b/hasmanyjosh]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7092 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/inflections.rb')
-rw-r--r--activesupport/lib/active_support/inflections.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/inflections.rb b/activesupport/lib/active_support/inflections.rb
index f53ef53ca4..967722c2bf 100644
--- a/activesupport/lib/active_support/inflections.rb
+++ b/activesupport/lib/active_support/inflections.rb
@@ -47,6 +47,7 @@ Inflector.inflections do |inflect|
inflect.irregular('child', 'children')
inflect.irregular('sex', 'sexes')
inflect.irregular('move', 'moves')
+ inflect.irregular('cow', 'kine')
inflect.uncountable(%w(equipment information rice money species series fish sheep))
end