module Sequel::Plugins::OptimisticLocking::InstanceMethods
Private Instance Methods
_update_columns(columns)
click to toggle source
Only update the row if it has the same lock version, and increment the lock version.
Calls superclass method
# File lib/sequel/plugins/optimistic_locking.rb, line 41 def _update_columns(columns) lc = model.lock_column lcv = get_column_value(lc) columns[lc] = lcv + 1 super set_column_value("#{lc}=", lcv + 1) end