aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/examples
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-03-05 04:14:51 +0900
committerRyuta Kamizono <kamipo@gmail.com>2018-03-06 02:03:31 +0900
commit263f01d93da118dc150c6ac816e70dcf10de2608 (patch)
tree71442d6fa769733252a0c76ff7da20234c20bd04 /activerecord/examples
parentccac681122db9747fec9512076772bca345e24b9 (diff)
downloadrails-263f01d93da118dc150c6ac816e70dcf10de2608.tar.gz
rails-263f01d93da118dc150c6ac816e70dcf10de2608.tar.bz2
rails-263f01d93da118dc150c6ac816e70dcf10de2608.zip
Fix that after commit callbacks on update does not triggered when optimistic locking is enabled
This issue is caused by `@_trigger_update_callback` won't be updated due to `_update_record` in `Locking::Optimistic` doesn't call `super` when optimistic locking is enabled. Now optimistic locking concern when updating is supported by `_update_row` low level API, therefore overriding `_update_record` is no longer necessary. Removing the method just fix the issue. Closes #29096. Closes #29321. Closes #30823.
Diffstat (limited to 'activerecord/examples')
0 files changed, 0 insertions, 0 deletions