method

lock

lock(locks = true)
public

Specifies locking settings (default to true). For more information on locking, please see ActiveRecord::Locking.