method

add_lock!

add_lock!(sql, options, scope = :auto)
private

The optional scope argument is for the current :find scope. The :lock option has precedence over a scoped :lock.