diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-07 15:35:50 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-07 15:35:50 +0000 |
commit | c63b2fef561930bc6f8cecb2bfe53ba240735d33 (patch) | |
tree | 9454acb8310b235f2e33d4e7951c8e7aad13ecf5 /actionpack | |
parent | e7444da160c97316e80e53c8cd6618f2f21fc920 (diff) | |
download | rails-c63b2fef561930bc6f8cecb2bfe53ba240735d33.tar.gz rails-c63b2fef561930bc6f8cecb2bfe53ba240735d33.tar.bz2 rails-c63b2fef561930bc6f8cecb2bfe53ba240735d33.zip |
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@72 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/support/inflector.rb | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/actionpack/lib/action_controller/support/inflector.rb b/actionpack/lib/action_controller/support/inflector.rb index f78d34348c..5fddf9d09c 100644 --- a/actionpack/lib/action_controller/support/inflector.rb +++ b/actionpack/lib/action_controller/support/inflector.rb @@ -63,17 +63,18 @@ module Inflector def singular_rules #:doc: [ - [/(x|ch|ss)es$/, '\1'], - [/([^aeiouy]|qu)ies$/, '\1y'], - [/([lr])ves$/, '\1f'], - [/([^f])ves$/, '\1fe'], - [/(analy|ba|diagno|parenthe|progno|synop|the)ses$/, '\1sis'], - [/([ti])a$/, '\1um'], - [/people$/, 'person'], - [/men$/, 'man'], - [/status$/, 'status'], - [/children$/, 'child'], - [/s$/, ''] - ] + [/(x|ch|ss)es$/, '\1'], + [/movies$/, 'movie'], + [/([^aeiouy]|qu)ies$/, '\1y'], + [/([lr])ves$/, '\1f'], + [/([^f])ves$/, '\1fe'], + [/(analy|ba|diagno|parenthe|progno|synop|the)ses$/, '\1sis'], + [/([ti])a$/, '\1um'], + [/people$/, 'person'], + [/men$/, 'man'], + [/status$/, 'status'], + [/children$/, 'child'], + [/s$/, ''] + ] end end
\ No newline at end of file |