1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test
Eugene Kenny d3060af7f5 Clear callback triggers when transaction completes
The `_trigger_update_callback` and `_trigger_destroy_callback`
attributes were added in 9252da9659 to
avoid running transactional callbacks when an attempt to modify a record
fails inside a transaction due to the record being invalid, for example.

However the values weren't being reset between transactions, which meant
they leaked from one transaction to another and caused false positives
where unsuccessful modifications still triggered callbacks. Clearing
them when a transaction commits or is rolled back fixes the problem.
2019-12-27 01:33:22 +00:00
..
active_record/connection_adapters Deduplicate various Active Record schema cache structures 2019-06-03 13:31:42 +02:00
assets
cases Clear callback triggers when transaction completes 2019-12-27 01:33:22 +00:00
fixtures Fix docs to replace http with https in activerecord [ci skip] 2019-08-26 22:34:33 +09:00
migrations Fix occurrences Fixnum|Bignum 2018-03-04 20:44:30 +02:00
models Check that entire collection has been loaded before short circuiting 2019-11-19 15:32:36 -06:00
schema Additionally order by primary key if implicit_order_column is not uniq 2019-11-03 16:01:18 +01:00
support Rename a test method to not conflict with a deprecated method 2019-12-17 12:35:15 -05:00
config.example.yml Respect ENV variables when finding DBs etc for the test suite 2019-02-06 01:20:06 +10:30
config.rb