Permalink
Browse files

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@72 5ecf4fe2…

…-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
dhh committed Dec 7, 2004
1 parent e7444da commit c63b2fef561930bc6f8cecb2bfe53ba240735d33
Showing with 13 additions and 12 deletions.
  1. +13 −12 actionpack/lib/action_controller/support/inflector.rb
@@ -63,17 +63,18 @@ def plural_rules #:doc:
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

0 comments on commit c63b2fe

Please sign in to comment.