aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2009-01-15 01:01:59 +0100
committerXavier Noria <fxn@hashref.com>2009-01-15 01:01:59 +0100
commited847ad4e6e1b418808a2bfe6d0647d7b9a497a9 (patch)
tree01dc6cc13e6475a5025002d0800248532394d2be /activerecord/lib
parentdeb597d63db0c903ce0ff70ab53abed60f95192a (diff)
downloadrails-ed847ad4e6e1b418808a2bfe6d0647d7b9a497a9.tar.gz
rails-ed847ad4e6e1b418808a2bfe6d0647d7b9a497a9.tar.bz2
rails-ed847ad4e6e1b418808a2bfe6d0647d7b9a497a9.zip
revised rdoc of class_of_active_record_descendant
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-xactiverecord/lib/active_record/base.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 938dd2a9b1..ebc0b7783f 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -2180,7 +2180,8 @@ module ActiveRecord #:nodoc:
end
end
- # Returns the class descending directly from Active Record in the inheritance hierarchy.
+ # Returns the class descending directly from ActiveRecord::Base or an
+ # abstract class, if any, in the inheritance hierarchy.
def class_of_active_record_descendant(klass)
if klass.superclass == Base || klass.superclass.abstract_class?
klass