Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CHANGELOG entry for inflection removal
- Loading branch information
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0423d9c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Andrew, what's the story behind this removal? The inflection list is sacred unless there's an exceedingly good reason to mess with it.
0423d9c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
cow
tokine
pluralization is archaic English - it's not used in modern English and it has caught people out, e.g:http://stackoverflow.com/questions/12488705/incorrect-pluralizing-of-model-in-rails
So I went back to the original Trac report to see the justification for adding it:
http://web.archive.org/web/20090314050915/http://dev.rubyonrails.org/ticket/4929
My reading of that is that it was added as a test case for when an irregular pluralization begins with a different letter than the singular form - the cow => kine one being the only example anyone could find in English. So I've left the test cases in place but just taken it out from the default list of pluralizations. Now seemed like a good time since we've just shipped 4.0 and 4.1 will be a while yet.
Ordinarily, I'd agree with the sacred nature of the inflection list but this seemed to be a fix we could make with minimal impact.
0423d9c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0423d9c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually it's not that easy - it's added as an irregular so you need to clear all of the plurals and singulars and then add in all the default inflections minus cow -> kine.
Whilst the idea of having some eccentricities is appealing, I think the cattle breeding web application market is a crucial area for Rails to expand into so I'm in favour of keeping it. 😄