Module: ActiveRecord::Locking::Optimistic::DeferredTouch
Do not use. This module is for internal use only.
| Relationships & Source Files | |
| Defined in: | activerecord/lib/active_record/locking/optimistic.rb |
Overview
Captures the preserve_lock_version_on_touch intent on the record at #touch_later time, since the actual touch is deferred until the transaction commits — by which point the surrounding block has already exited.
Instance Method Summary
Instance Method Details
#touch_later
[ GitHub ]# File 'activerecord/lib/active_record/locking/optimistic.rb', line 60
def touch_later(*) if Optimistic.preserving_lock_version_on_touch? @_skip_locking_column_on_touch = true end super end