This project is archived and is in readonly mode.
irregular inflection: drive, drives
Reported by ronin-38963 (at lighthouseapp) | November 26th, 2008 @ 09:22 AM | in 2.x
I encountered an incorrect inflection while using my :drives table. The problem originates from the dwarf->dwarves loaf->loaves rule.
require 'ActiveSupport' # version 2.2.2 => true 'drives'.singularize => "drife"
Please append the Inflector class as so: ActiveSupport::Inflector.inflections.irregular 'drive', 'drives'
Comments and changes to this ticket
-
ronin-38963 (at lighthouseapp) November 26th, 2008 @ 09:24 AM
require 'ActiveSupport' # version 2.2.2 => true 'drives'.singularize => "drife"
-
Josh Susser November 26th, 2008 @ 12:22 PM
Rails hasn't accepted patches for particular inflections in years. But there's no need for a patch, since you can add your own inflections in your app. Just modify config/initializers/inflections.rb to include whatever changes you need.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
- Nobody is watching this ticket.