aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/inflector.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-06-06 03:41:47 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2008-06-06 03:41:47 -0700
commit49c4c7b997c9e55907c78723c73f537087b1497d (patch)
tree38acf8a3b65dab0945a4c31c0c8245d99664eef0 /activesupport/lib/active_support/inflector.rb
parent9c9da5d927a1401bde9e96879c6117fb22210a09 (diff)
parent566d717d783f56563cd602198be2177c972c9a81 (diff)
downloadrails-49c4c7b997c9e55907c78723c73f537087b1497d.tar.gz
rails-49c4c7b997c9e55907c78723c73f537087b1497d.tar.bz2
rails-49c4c7b997c9e55907c78723c73f537087b1497d.zip
Merge branch 'master' into erbout
Diffstat (limited to 'activesupport/lib/active_support/inflector.rb')
-rw-r--r--activesupport/lib/active_support/inflector.rb8
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'