• J
    Added STI support to init and building associations · 89b5b31c
    Jason Rush 提交于
    Allows you to do BaseClass.new(:type => "SubClass") as well as
    parent.children.build(:type => "SubClass") or parent.build_child
    to initialize an STI subclass. Ensures that the class name is a
    valid class and that it is in the ancestors of the super class
    that the association is expecting.
    89b5b31c
company.rb 9.8 KB