module ActiveRecord::Locking::Optimistic::ClassMethods
def locking_enabled?
(which it is, by default) and the table includes the
Returns true if the +lock_optimistically+ flag is set to true
def locking_enabled? lock_optimistically && columns_hash[locking_column] end