1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fixed rewriting of dashes, lashes

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@345 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-01-08 14:22:29 +00:00
parent b64004fda6
commit 48f590a42e

View file

@ -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