• J
    ActiveRecord::Base.all returns a Relation. · 6a81ccd6
    Jon Leighton 提交于
    Previously it returned an Array.
    
    If you want an array, call e.g. `Post.to_a` rather than `Post.all`. This
    is more explicit.
    
    In most cases this should not break existing code, since
    Relations use method_missing to delegate unknown methods to #to_a
    anyway.
    6a81ccd6
inheritance_test.rb 10.5 KB