Permalink
Browse files

revised rdoc of class_of_active_record_descendant

  • Loading branch information...
1 parent deb597d commit ed847ad4e6e1b418808a2bfe6d0647d7b9a497a9 @fxn fxn committed Jan 15, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 activerecord/lib/active_record/base.rb
@@ -2180,7 +2180,8 @@ def compute_type(type_name)
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

0 comments on commit ed847ad

Please sign in to comment.