aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorDavid Lee <davidomundo@gmail.com>2011-06-07 19:05:09 -0700
committerDavid Lee <davidomundo@gmail.com>2011-06-11 01:35:16 -0700
commit51cd6bb829c418c5fbf75de1dfbb177233b1b154 (patch)
tree241f260497cf88bb0a060c311a145f6e907e556d /railties/guides
parentf3e8bb839428c1a3481284ebda4f998bfe68b171 (diff)
downloadrails-51cd6bb829c418c5fbf75de1dfbb177233b1b154.tar.gz
rails-51cd6bb829c418c5fbf75de1dfbb177233b1b154.tar.bz2
rails-51cd6bb829c418c5fbf75de1dfbb177233b1b154.zip
Refactor
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/source/initialization.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/initialization.textile b/railties/guides/source/initialization.textile
index 1d5b0c0c11..340699419b 100644
--- a/railties/guides/source/initialization.textile
+++ b/railties/guides/source/initialization.textile
@@ -661,9 +661,9 @@ require 'active_support/inflections'
require 'active_support/core_ext/string/inflections'
</ruby>
-The +active_support/inflector/methods+ file has already been required by +active_support/autoload+ and so won't be loaded again here.
+The +active_support/inflector/methods+ file has already been required by +active_support/autoload+ and so won't be loaded again here. The +activesupport/lib/active_support/inflector/inflections.rb+ is required by +active_support/inflector/methods+.
-h4. +activesupport/lib/active_support/inflector/inflections.rb+
+h4. +active_support/inflections+
This file references the +ActiveSupport::Inflector+ constant which isn't loaded by this point. But there were autoloads set up in +activesupport/lib/active_support.rb+ which will load the file which loads this constant and so then it will be defined. Then this file defines pluralization and singularization rules for words in Rails. This is how Rails knows how to pluralize "tomato" to "tomatoes".