Flowdock
method

with_lock

Importance_1
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: ActiveRecord::Locking::Pessimistic
with_lock(lock = true) public

Wraps the passed block in a transaction, locking the object before yielding. You pass can the SQL locking clause as argument (see lock!).

Show source
Register or log in to add new notes.