Module: Sequel::Plugins::OptimisticLockingBase::InstanceMethods

Defined in:
lib/sequel/plugins/optimistic_locking_base.rb

Instance Method Summary collapse

Instance Method Details

#before_destroyObject

Add the lock column instance filter to the object before destroying it.



21
22
23
24
# File 'lib/sequel/plugins/optimistic_locking_base.rb', line 21

def before_destroy
  lock_column_instance_filter
  super
end

#before_updateObject

Add the lock column instance filter to the object before updating it.



27
28
29
30
# File 'lib/sequel/plugins/optimistic_locking_base.rb', line 27

def before_update
  lock_column_instance_filter
  super
end