This project is archived and is in readonly mode.
Caching of Exclusive Row Lock Requests by ActiveRecord
-
groe
My temporary fix:
config/lock_caching.rb
class ActiveRecord::Base def lock!(lock=true) self.class.uncached do self.reload(:lock => lock) unless new_record? end self end endThis disables caching of lock requests when calling "lock!" but does not handle arguments like {:lock => true} or {:lock => "FOR UPDATE"}. So is there a better way to fix this?
-
groe
- No changes were found…