Skip to content

Commit

Permalink
revised rdoc of class_of_active_record_descendant
Browse files Browse the repository at this point in the history
  • Loading branch information
fxn committed Jan 15, 2009
1 parent deb597d commit ed847ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion activerecord/lib/active_record/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed847ad

Please sign in to comment.