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:
parent
1a2a71333f
commit
7ed2e6c463
2 changed files with 3 additions and 1 deletions
|
@ -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')
|
||||
|
|
|
@ -99,7 +99,8 @@ module InflectorTestCases
|
|||
"prize" => "prizes",
|
||||
"edge" => "edges",
|
||||
|
||||
"cow" => "kine"
|
||||
"cow" => "kine",
|
||||
"database" => "databases"
|
||||
}
|
||||
|
||||
CamelToUnderscore = {
|
||||
|
|
Loading…
Reference in a new issue