This project is archived and is in readonly mode.

#6533 ✓wontfix


Reported by Chuck | March 5th, 2011 @ 04:03 PM

"offensive".pluralize returns "offensives" but "offensives".singularize returns "offensife"

I think it should return "offensive"

("offensife".pluralize does return "offensives", but I don't think "offensife" is a real word?)

Comments and changes to this ticket

  • Andrew White

    Andrew White March 5th, 2011 @ 06:13 PM

    • State changed from “new” to “wontfix”
    • Importance changed from “” to “Low”

    Edit your inflections.rb initializer to add any custom inflections required by your application, e.g:

    # config/initializers/inflections.rb
    ActiveSupport::Inflector.inflections do |inflect|
      inflect.irregular 'offensive', 'offensives'

    Just out of interest what kind of app requires an Offensive model? Military history?

  • Chuck

    Chuck March 5th, 2011 @ 11:02 PM

    @Andrew: Yes, I implemented a workaround using the inflections.rb file, but I thought I'd file a bug too. I'm writing an app to document/simulate the Decline and Fall of the Roman Empire :-)

  • Andrew White

    Andrew White March 6th, 2011 @ 05:07 AM

    It's a long time policy not to accept any changes to the inflections list for backwards compatibility/performance reason - if all the exceptions reported as bugs were added to the default list it'd be at least twice as long.

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=""></a>