Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10919: penis_enhancement.diff

File penis_enhancement.diff, 1.0 kB (added by srbaker, 5 months ago)

Enhancement to add penis plural to the inflector.

  • activesupport/test/inflector_test_cases.rb

    old new  
    9797    "prize"       => "prizes", 
    9898    "edge"        => "edges", 
    9999 
    100     "cow"         => "kine" 
     100    "cow"         => "kine", 
     101     
     102    "penis"       => "penises" 
    101103  } 
    102104 
    103105  CamelToUnderscore = { 
  • activesupport/lib/active_support/inflections.rb

    old new  
    4848  inflect.irregular('sex', 'sexes') 
    4949  inflect.irregular('move', 'moves') 
    5050  inflect.irregular('cow', 'kine') 
    51  
     51  inflect.irregular('penis', 'penises') 
     52   
    5253  inflect.uncountable(%w(equipment information rice money species series fish sheep)) 
    5354end