Method: ActiveRecord::Locking::Optimistic::ClassMethods#locking_column

Defined in:
lib/active_record/locking/optimistic.rb

#locking_columnObject

The version column used for optimistic locking. Defaults to lock_version.



143
144
145
146
# File 'lib/active_record/locking/optimistic.rb', line 143

def locking_column
  reset_locking_column unless defined?(@locking_column)
  @locking_column
end