class

ActiveRecord::Locking::LockingType

v7.1.3.2 - Show latest stable - Superclass: SimpleDelegator

In de/serialize we change `nil` to 0, so that we can allow passing `nil` values to `lock_version`, and not result in `ActiveRecord::StaleObjectError` during update record.

Files

  • activerecord/lib/active_record/locking/optimistic.rb