Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

irregular inflection: drive, drives

#1479

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'

Reported by ronin-38963 (at lighthouseapp) · November 26th, 2008 @ 09:22 AM

State: wontfix
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. ronin-38963 (at lighthouseapp)
    ronin-38963 (at lighthouseapp)

    require 'ActiveSupport' # version 2.2.2 => true 'drives'.singularize => "drife"

    November 26th, 2008 @ 09:24 AM

  2. Josh Susser
    Josh Susser

    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.

    November 26th, 2008 @ 12:22 PM

  3. Pratik
    Pratik
    • State changed from new to wontfix

    What Josh said.

    November 26th, 2008 @ 01:32 PM

  4. bingbing