From 48f590a42ec2ed501c44c01cdea8b1aa9163e1d9 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 8 Jan 2005 14:22:29 +0000 Subject: Fixed rewriting of dashes, lashes git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@345 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/lib/inflector.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport') diff --git a/activesupport/lib/inflector.rb b/activesupport/lib/inflector.rb index 5fddf9d09c..d2fbfb1e7c 100644 --- a/activesupport/lib/inflector.rb +++ b/activesupport/lib/inflector.rb @@ -47,7 +47,7 @@ module Inflector private def plural_rules #:doc: [ - [/(x|ch|ss)$/, '\1es'], # search, switch, fix, box, process, address + [/(x|ch|ss|sh)$/, '\1es'], # search, switch, fix, box, process, address [/([^aeiouy]|qu)ies$/, '\1y'], [/([^aeiouy]|qu)y$/, '\1ies'], # query, ability, agency [/(?:([^f])fe|([lr])f)$/, '\1\2ves'], # half, safe, wife -- cgit v1.2.3