Rails Guide and lots of other tutorials show me how to rescue ActiveRecord::StaleObjectError
exception and do retry in optimistic locking. And I just curious can I do the same thing in pessimistic locking scenario.
Any reply is appreciate! :D
Rails Guide and lots of other tutorials show me how to rescue ActiveRecord::StaleObjectError
exception and do retry in optimistic locking. And I just curious can I do the same thing in pessimistic locking scenario.
Any reply is appreciate! :D