Closed
Description
Class method lock
defined in Redis::Objects::Locks::ClassMethods
conflicts with lock
in ActiveRecord::Querying#lock
, which makes it impossible to enable ActiveRecord Pessimistic Locking by Account.lock.find(1)
.
We can still chain the method like this Account.wherer(id:1).lock.take
. but that is dirty and better be avoided.
This issue could be part of #153 .