Module: Sequel::Plugins::MssqlOptimisticLocking::InstanceMethods

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

Instance Method Summary collapse

Instance Method Details

#before_destroyObject

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



44
45
46
47
# File 'lib/sequel/plugins/mssql_optimistic_locking.rb', line 44

def before_destroy
  lock_column_instance_filter
  super
end

#before_updateObject

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



50
51
52
53
# File 'lib/sequel/plugins/mssql_optimistic_locking.rb', line 50

def before_update
  lock_column_instance_filter
  super
end