• R
    Add a record to target before any callbacks loads the record · 9eee7822
    Ryuta Kamizono 提交于
    `append_record` was added at 15ddd517 for not double adding the record.
    But adding `append_record` (checking `@target.include?(record)`) caused
    performance regression #27434. Instead of checking not double adding the
    record, add a record to target before any callbacks loads the record.
    
    Fixes #27434.
    9eee7822
has_many_associations_test.rb 82.6 KB