aboutsummaryrefslogtreecommitdiffstats
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-06-04 02:56:52 +0900
committerRyuta Kamizono <kamipo@gmail.com>2018-06-04 08:22:55 +0900
commitae028984d91a346067eac3d7f43d9ff3217bed11 (patch)
tree9c4d3f70bdb4c6e02a450fef775be67bbd23642d /.rubocop.yml
parentf7fd680a6de195d78286332c6021afe068ad6bd6 (diff)
downloadrails-ae028984d91a346067eac3d7f43d9ff3217bed11.tar.gz
rails-ae028984d91a346067eac3d7f43d9ff3217bed11.tar.bz2
rails-ae028984d91a346067eac3d7f43d9ff3217bed11.zip
Fix `save` in `after_create_commit` won't invoke extra `after_create_commit`
Since a record is already persisted in `after_create_commit`, so `save` should invoke only `after_update_commit`. This bug is caused by depending on `@_start_transaction_state` for rollback to consider whether it was `new_record` before being committed. If after commit callbacks caused another commit, the state before last commit is no longer `new_record`. Fixes #32831. Closes #18367. Closes #31106.
Diffstat (limited to '.rubocop.yml')
0 files changed, 0 insertions, 0 deletions