diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-11-16 21:29:48 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-11-16 21:29:48 +0100 |
commit | 54c18564252e46bf2f270bf42c0be06033631d9b (patch) | |
tree | 58190e53c6e3831a5903622325f7360d27b386bd /activesupport/lib | |
parent | e6c51051e4bbc1483ecc9e0837bb893197bbca83 (diff) | |
download | rails-54c18564252e46bf2f270bf42c0be06033631d9b.tar.gz rails-54c18564252e46bf2f270bf42c0be06033631d9b.tar.bz2 rails-54c18564252e46bf2f270bf42c0be06033631d9b.zip |
The inflector is meant to work on words not phrases -- dont confuse people with a phrase example
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/inflector.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/inflector.rb b/activesupport/lib/active_support/inflector.rb index ba52e41c08..ad2660e6c8 100644 --- a/activesupport/lib/active_support/inflector.rb +++ b/activesupport/lib/active_support/inflector.rb @@ -134,7 +134,6 @@ module ActiveSupport # "octopus".pluralize # => "octopi" # "sheep".pluralize # => "sheep" # "words".pluralize # => "words" - # "the blue mailman".pluralize # => "the blue mailmen" # "CamelOctopus".pluralize # => "CamelOctopi" def pluralize(word) result = word.to_s.dup @@ -154,7 +153,6 @@ module ActiveSupport # "octopi".singularize # => "octopus" # "sheep".singluarize # => "sheep" # "word".singularize # => "word" - # "the blue mailmen".singularize # => "the blue mailman" # "CamelOctopi".singularize # => "CamelOctopus" def singularize(word) result = word.to_s.dup |