diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-02 19:05:47 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-02 19:05:47 +0000 |
commit | da4b15fe188dfd1fea42cadde6f984f9a1bd3a85 (patch) | |
tree | c5f822ad937cd52745c98f4633a7e10daca6b349 /activesupport/lib | |
parent | c196db9527843979f884f331499f0b8963f99dcd (diff) | |
download | rails-da4b15fe188dfd1fea42cadde6f984f9a1bd3a85.tar.gz rails-da4b15fe188dfd1fea42cadde6f984f9a1bd3a85.tar.bz2 rails-da4b15fe188dfd1fea42cadde6f984f9a1bd3a85.zip |
More inflectoring #1490
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1616 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/inflector.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/inflector.rb b/activesupport/lib/active_support/inflector.rb index 0e8fad221c..1940cfd0ca 100644 --- a/activesupport/lib/active_support/inflector.rb +++ b/activesupport/lib/active_support/inflector.rb @@ -65,6 +65,7 @@ module Inflector [/(series)$/i, '\1\2'], [/([^aeiouy]|qu)ies$/i, '\1y'], [/([^aeiouy]|qu)y$/i, '\1ies'], # query, ability, agency + [/(hive)$/i, '\1s'], # archive, hive [/(?:([^f])fe|([lr])f)$/i, '\1\2ves'], # half, safe, wife [/sis$/i, 'ses'], # basis, diagnosis [/([ti])um$/i, '\1a'], # datum, medium @@ -93,6 +94,7 @@ module Inflector [/([^aeiouy]|qu)ies$/i, '\1y'], [/([lr])ves$/i, '\1f'], [/(tive)s$/i, '\1'], + [/(hive)s$/i, '\1'], [/([^f])ves$/i, '\1fe'], [/(^analy)ses$/i, '\1sis'], [/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i, '\1\2sis'], |