module Sequel::Plugins::OptimisticLocking::InstanceMethods

  1. lib/sequel/plugins/optimistic_locking.rb

Methods

Public Instance

  1. before_destroy
  2. before_update

Public Instance methods

before_destroy ()

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

[show source]
# File lib/sequel/plugins/optimistic_locking.rb, line 44
def before_destroy
  lock_column_instance_filter
  super
end
before_update ()

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

[show source]
# File lib/sequel/plugins/optimistic_locking.rb, line 50
def before_update
  lock_column_instance_filter
  super
end