rails/rails — pull request #7171 by beerlington (2012-07-26 19:10:30+00:00)
Title: Refactor ActiveRecord::Inheritance.base_class logic

Removed protected method `class_of_active_record_descendant` and moved logic to the `base_class` method. The `class_of_active_record_descendant` method was confusing because it required an argument, but that argument was 'self' and was not used outside this context.

Also moved base_class tests to inheritance_test.rb and added some test coverage for some untested cases.