Method: Sequel::Plugins::OptimisticLocking.configure
- Defined in:
- lib/sequel/plugins/optimistic_locking.rb
permalink .configure(model, opts = OPTS) ⇒ Object
Set the lock column
33 34 35 |
# File 'lib/sequel/plugins/optimistic_locking.rb', line 33 def self.configure(model, opts=OPTS) model.lock_column = opts[:lock_column] || model.lock_column || :lock_version end |