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

Adding inflection of databases (usually we wouldn't amend the current defaults, but this seems to obvious) [#1942 state:committed]

Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
This commit is contained in:
Jiri Zajpt 2009-02-11 17:27:38 +01:00 committed by David Heinemeier Hansson
parent 1a2a71333f
commit 7ed2e6c463
2 changed files with 3 additions and 1 deletions

View file

@ -42,6 +42,7 @@ module ActiveSupport
inflect.singular(/(vert|ind)ices$/i, '\1ex')
inflect.singular(/(matr)ices$/i, '\1ix')
inflect.singular(/(quiz)zes$/i, '\1')
inflect.singular(/(database)s$/i, '\1')
inflect.irregular('person', 'people')
inflect.irregular('man', 'men')

View file

@ -99,7 +99,8 @@ module InflectorTestCases
"prize" => "prizes",
"edge" => "edges",
"cow" => "kine"
"cow" => "kine",
"database" => "databases"
}
CamelToUnderscore = {