aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/active_support_core_extensions.textile
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-01-17 00:15:51 +0100
committerXavier Noria <fxn@hashref.com>2010-01-17 00:15:51 +0100
commit043e876676ad49b3b21d8d90465d7e7a8f8fb25a (patch)
treeae1b0f6ecabc558a1d8ce001c8698fdfe5c7e77a /railties/guides/source/active_support_core_extensions.textile
parent0ec76099e06ac342261473fcaa88db4f58a2a8b3 (diff)
downloadrails-043e876676ad49b3b21d8d90465d7e7a8f8fb25a.tar.gz
rails-043e876676ad49b3b21d8d90465d7e7a8f8fb25a.tar.bz2
rails-043e876676ad49b3b21d8d90465d7e7a8f8fb25a.zip
AS guide: revises section about Class#subclasses
Diffstat (limited to 'railties/guides/source/active_support_core_extensions.textile')
-rw-r--r--railties/guides/source/active_support_core_extensions.textile6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile
index ee1c83673c..c911cb9c9f 100644
--- a/railties/guides/source/active_support_core_extensions.textile
+++ b/railties/guides/source/active_support_core_extensions.textile
@@ -629,7 +629,7 @@ NOTE: Defined in +active_support/core_ext/class/delegating_attributes.rb+.
h4. Subclasses
-The +subclasses+ method returns the names of all subclasses of a given class as an array of strings. That comprises not only direct subclasses, but all descendants down the hierarchy:
+The +subclasses+ method returns the names of all the reachable descendants of its receiver as an array of strings:
<ruby>
class C; end
@@ -650,9 +650,9 @@ end
M::A.subclasses # => ["N::C", "M::B2", "M::B1"]
</ruby>
-The order in which these class names are returned is unspecified.
+WARNING: +ActiveRecord::Base+ redefines this method, it returns class objects, reachable or not, and it is protected.
-See also +Object#subclasses_of+ in "Extensions to All Objects FIX THIS LINK":FIXME.
+See aso +Object#subclasses_of+, explained in "Extensions to All Objects FIX THIS LINK":FIXME.
NOTE: Defined in +active_support/core_ext/class/removal.rb+.