diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-06 03:02:22 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-06 03:02:22 -0700 |
commit | 0ccd0b569ad4df7acc37a14531606ba6f74c69f4 (patch) | |
tree | f3811a42183d0099e264729c7af06cdb35936a14 /activesupport | |
parent | 1dbfe9766e00282c56523f6969550494bbffbbf4 (diff) | |
download | rails-0ccd0b569ad4df7acc37a14531606ba6f74c69f4.tar.gz rails-0ccd0b569ad4df7acc37a14531606ba6f74c69f4.tar.bz2 rails-0ccd0b569ad4df7acc37a14531606ba6f74c69f4.zip |
Fix doc typo. Move extend self so it's more immediately obvious. Require inflections from load path.
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/inflector.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/inflector.rb b/activesupport/lib/active_support/inflector.rb index fc88d80cdb..9d549eaae1 100644 --- a/activesupport/lib/active_support/inflector.rb +++ b/activesupport/lib/active_support/inflector.rb @@ -10,6 +10,8 @@ module ActiveSupport # If you discover an incorrect inflection and require it for your application, you'll need # to correct it yourself (explained below). module Inflector + extend self + # A singleton instance of this class is yielded by Inflector.inflections, which can then be used to specify additional # inflection rules. Examples: # @@ -91,8 +93,6 @@ module ActiveSupport end end - extend self - # Yields a singleton instance of Inflector::Inflections so you can specify additional # inflector rules. # @@ -134,7 +134,7 @@ module ActiveSupport # "posts".singularize # => "post" # "octopi".singularize # => "octopus" # "sheep".singluarize # => "sheep" - # "word".singluarize # => "word" + # "word".singularize # => "word" # "the blue mailmen".singularize # => "the blue mailman" # "CamelOctopi".singularize # => "CamelOctopus" def singularize(word) @@ -307,4 +307,4 @@ module ActiveSupport end end -require File.dirname(__FILE__) + '/inflections' +require 'active_support/inflections' |