Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit c63b2fef561930bc6f8cecb2bfe53ba240735d33 1 parent e7444da
@dhh dhh authored
Showing with 13 additions and 12 deletions.
  1. +13 −12 actionpack/lib/action_controller/support/inflector.rb
View
25 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
Please sign in to comment.
Something went wrong with that request. Please try again.