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.

Bug in pluralizer / singularizer

#6640

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 >

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

State: wontfix
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Andrew White
    Andrew White
    • 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'
    end
    

    March 28th, 2011 @ 10:00 PM