• B
    Refactor ActiveRecord::Inheritance.base_class logic · d0aebd53
    beerlington 提交于
    Moved logic from class_of_active_record_descendant(class) to the
    base_class method. This method was confusing because it required
    an argument, but that argument was 'self'.
    
    Moved base_class tests to inheritance_test.rb and added some test
    coverage for some untested cases.
    d0aebd53
base_test.rb 64.4 KB