diff options
author | Anuj Dutta <anuj@andhapp.com> | 2012-05-16 22:56:08 +0100 |
---|---|---|
committer | Anuj Dutta <anuj@andhapp.com> | 2012-05-16 22:58:03 +0100 |
commit | bc51ad957a22a7326a6d723cd75bbc97cbeaa0f6 (patch) | |
tree | 6726a21c93333c4befe086ab9776d25c74f40cbc /activesupport/lib | |
parent | 78b6fdd89f541dfedd369da9957ee6eab9a8a586 (diff) | |
download | rails-bc51ad957a22a7326a6d723cd75bbc97cbeaa0f6.tar.gz rails-bc51ad957a22a7326a6d723cd75bbc97cbeaa0f6.tar.bz2 rails-bc51ad957a22a7326a6d723cd75bbc97cbeaa0f6.zip |
Fix an issue with inflection where my_analyses (in plular form) incorrectly converted to my_analyasis(in singular form).
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/inflections.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/inflections.rb b/activesupport/lib/active_support/inflections.rb index 7eb61cd1a0..c04c2ed15b 100644 --- a/activesupport/lib/active_support/inflections.rb +++ b/activesupport/lib/active_support/inflections.rb @@ -26,7 +26,7 @@ module ActiveSupport inflect.singular(/(ss)$/i, '\1') inflect.singular(/(n)ews$/i, '\1ews') inflect.singular(/([ti])a$/i, '\1um') - inflect.singular(/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)(sis|ses)$/i, '\1\2sis') + inflect.singular(/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)(sis|ses)$/i, '\1sis') inflect.singular(/(^analy)(sis|ses)$/i, '\1sis') inflect.singular(/([^f])ves$/i, '\1fe') inflect.singular(/(hive)s$/i, '\1') |