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
46 def before_destroy
47   lock_column_instance_filter
48   super
49 end
before_update()

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

[show source]
   # File lib/sequel/plugins/optimistic_locking.rb
52 def before_update
53   lock_column_instance_filter
54   super
55 end