Skip to content
  • Vipul A M's avatar
    210729c4
    Followup of #15771 · 210729c4
    Vipul A M authored
    Make sure we handle explicitly passed nil's to lock_version as well.
    An explicitly passed nil value is now converted to 0 on LockingType,
    so that we don't end up with ActiveRecord::StaleObjectError in update record
    optimistic locking
    
    Fixes #24695
    210729c4
    Followup of #15771
    Vipul A M authored
    Make sure we handle explicitly passed nil's to lock_version as well.
    An explicitly passed nil value is now converted to 0 on LockingType,
    so that we don't end up with ActiveRecord::StaleObjectError in update record
    optimistic locking
    
    Fixes #24695
Loading