aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/config.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2016-12-23 21:56:20 +0900
committerRyuta Kamizono <kamipo@gmail.com>2016-12-23 21:56:20 +0900
commit9eee7822ac4bce983ad45a98c4d111eb36285199 (patch)
tree20c13d1bcc947a2b6cfc2e8ecd25714f76aca7a5 /activerecord/test/config.rb
parentfd63aa02289d64e9d14fe56723f1de64bca3bb1f (diff)
downloadrails-9eee7822ac4bce983ad45a98c4d111eb36285199.tar.gz
rails-9eee7822ac4bce983ad45a98c4d111eb36285199.tar.bz2
rails-9eee7822ac4bce983ad45a98c4d111eb36285199.zip
Add a record to target before any callbacks loads the record
`append_record` was added at 15ddd51 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.
Diffstat (limited to 'activerecord/test/config.rb')
0 files changed, 0 insertions, 0 deletions