Inconsistent behavior in pluralizing uncountable words

I have noticed an inconsistent behavior in pluralizing uncountable words

“rice”.pluralize => “rice”

“WhiteRice”.pluralize => “WhiteRices”

“white_rice”.pluralize => “white_rices”

I have generated a patch that corrects this behavior to give the expected results as follows

“rice”.pluralize => “rice”

“WhiteRice”.pluralize => “WhiteRice”

“white_rice”.pluralize => “white_rice”

The commits can also be found at

http://github.com/xspond/rails/commit/33b18be4b1bd1d69887073fe46d6c3f882c7baff

http://github.com/xspond/rails/commit/d030faa81c35fc4c405ab79503958d9695baf211

Ticket at

https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/4836-patch-inconsistent-behavior-in-pluralizing-uncountable-words

David Genord II