After having a patch to fix the inflections in Rails shot down and
watching Steven B.'s VERIFIED penis_enhancement.diff be set to
wontfix, my indignation has reached fever pitch!
Thus, acts_as_good_speeler is born: finally, a plugin that offers
proper fixes for the Rails inflector. For a while now, there have
been a number of errors pointed out in the Rails inflector. Usually,
the suggestion is to fix it in environment.rb or make a plugin. Well,
this is that plugin. You can see the tests for all the fixes (and,
yes fixes the pluralization of penis and pokemon!).
This overrides the built-in Inflector class, so you don’t need to do
Get the code:
svn ci http://code.jeremymcanally.com/acts_as_good_speeler
Install it like so:
More information available at:
Patches and additions/corrections welcome.
Ruby in Practice
My free Ruby e-book