From 043e876676ad49b3b21d8d90465d7e7a8f8fb25a Mon Sep 17 00:00:00 2001
From: Xavier Noria <fxn@hashref.com>
Date: Sun, 17 Jan 2010 00:15:51 +0100
Subject: AS guide: revises section about Class#subclasses

---
 railties/guides/source/active_support_core_extensions.textile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'railties/guides/source/active_support_core_extensions.textile')

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+.
 
-- 
cgit v1.2.3

