Skip to content

Commit

Permalink
Add pluralization for 'canvas'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian McKenzie committed Oct 1, 2018
1 parent 2334fe8 commit 7d15bbf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions activesupport/lib/active_support/inflections.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module ActiveSupport
inflect.plural(/^(ox)$/i, '\1en')
inflect.plural(/^(oxen)$/i, '\1')
inflect.plural(/(quiz)$/i, '\1zes')
inflect.plural(/(canva)s$/i, '\1ses')

inflect.singular(/s$/i, "")
inflect.singular(/(ss)$/i, '\1')
Expand Down Expand Up @@ -59,6 +60,7 @@ module ActiveSupport
inflect.singular(/(matr)ices$/i, '\1ix')
inflect.singular(/(quiz)zes$/i, '\1')
inflect.singular(/(database)s$/i, '\1')
inflect.singular(/(canvas)(es)?$/i, '\1')

inflect.irregular("person", "people")
inflect.irregular("man", "men")
Expand Down

0 comments on commit 7d15bbf

Please sign in to comment.