diff options
author | Jacob Lewallen <jlewallen@gmail.com> | 2010-07-07 10:55:40 +0900 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-07-14 08:02:17 +0200 |
commit | d10ecfefb8bd4461127f552f14970ad6b3df507f (patch) | |
tree | e49efae5db87c4a06bf113ec03c2fa37c88d7b95 /activerecord/lib | |
parent | 16bae77c568e3e2607ebcfb16a24b9cf6f53df8f (diff) | |
download | rails-d10ecfefb8bd4461127f552f14970ad6b3df507f.tar.gz rails-d10ecfefb8bd4461127f552f14970ad6b3df507f.tar.bz2 rails-d10ecfefb8bd4461127f552f14970ad6b3df507f.zip |
Set destroyed=true in opt locking's destroy [#5058 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/locking/optimistic.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/locking/optimistic.rb b/activerecord/lib/active_record/locking/optimistic.rb index ceb0902fde..b6f87a57b8 100644 --- a/activerecord/lib/active_record/locking/optimistic.rb +++ b/activerecord/lib/active_record/locking/optimistic.rb @@ -124,6 +124,7 @@ module ActiveRecord end end + @destroyed = true freeze end |