This project is archived and is in readonly mode.

#6640 ✓wontfix

Bug in pluralizer / singularizer

Reported by Francis | March 28th, 2011 @ 02:55 PM

plural of scratch_save is scratch_saves, singular of scratch_saves is scratch_safe

Loading development environment (Rails 3.0.4)
ruby-1.9.2-p136 :001 > 'scratch_saves'.singularize
=> "scratch_safe" ruby-1.9.2-p136 :002 > 'scratch_save'.pluralize
=> "scratch_saves" ruby-1.9.2-p136 :003 >

Comments and changes to this ticket

  • Andrew White

    Andrew White March 28th, 2011 @ 10:00 PM

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

    The policy is to not accept any changes to the inflections list for backwards compatibility reasons. Please use config/inflections/initializer.rb to add any custom inflections you need:

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

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>