groe
Not a member
groe's latest activity
Friday, February 25 2011
6468
Caching of Exclusive Row Lock Requests by ActiveRecord
was updated
in Ruby on Rails
-
groe commented at 12:10 PM -
groe commented at 12:01 PMMy temporary fix:
config/lock_caching.rb
class ActiveRecord::Base def lock!(lock=true) self.class.uncached do self.reload(:lock => lock) unless new... -
groe created the ticket at 11:17 AMHello,
I guess this is an unexpected behaviour or even a bug.
Calling
Model1.find(1, :lock => true)
Model1.find(1, :lock => true)results in
Model1 Load (0.2ms)...