Skip to content
This repository
Browse code

The inflector is meant to work on words not phrases -- dont confuse p…

…eople with a phrase example
  • Loading branch information...
commit 54c18564252e46bf2f270bf42c0be06033631d9b 1 parent e6c5105
David Heinemeier Hansson authored November 16, 2008
2  activesupport/lib/active_support/inflector.rb
@@ -134,7 +134,6 @@ def inflections
134 134
     #   "octopus".pluralize          # => "octopi"
135 135
     #   "sheep".pluralize            # => "sheep"
136 136
     #   "words".pluralize            # => "words"
137  
-    #   "the blue mailman".pluralize # => "the blue mailmen"
138 137
     #   "CamelOctopus".pluralize     # => "CamelOctopi"
139 138
     def pluralize(word)
140 139
       result = word.to_s.dup
@@ -154,7 +153,6 @@ def pluralize(word)
154 153
     #   "octopi".singularize           # => "octopus"
155 154
     #   "sheep".singluarize            # => "sheep"
156 155
     #   "word".singularize             # => "word"
157  
-    #   "the blue mailmen".singularize # => "the blue mailman"
158 156
     #   "CamelOctopi".singularize      # => "CamelOctopus"
159 157
     def singularize(word)
160 158
       result = word.to_s.dup

0 notes on commit 54c1856

Please sign in to comment.
Something went wrong with that request. Please try again.