diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-02-01 13:39:34 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-02-01 13:55:15 -0800 |
commit | f958ec169a6e264224ccd736c54e4c46ccb145ef (patch) | |
tree | ec99fc1d7f13a38dde8d985e813de9552da1043e /activerecord | |
parent | 2fe954ec803efe6b8f3b08541070f9e6a8c71232 (diff) | |
download | rails-f958ec169a6e264224ccd736c54e4c46ccb145ef.tar.gz rails-f958ec169a6e264224ccd736c54e4c46ccb145ef.tar.bz2 rails-f958ec169a6e264224ccd736c54e4c46ccb145ef.zip |
stop making calls to add_record
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/transaction.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/transaction.rb b/activerecord/lib/active_record/connection_adapters/abstract/transaction.rb index 7f738e89c9..1252a33d7d 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/transaction.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/transaction.rb @@ -167,7 +167,7 @@ module ActiveRecord if current_transaction.joinable? inner_transaction.records.each do |r| - current_transaction.add_record(r) + r.add_to_transaction end else inner_transaction.commit_records |