diff options
Diffstat (limited to 'lib/gitlab/optimistic_locking.rb')
-rw-r--r-- | lib/gitlab/optimistic_locking.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/optimistic_locking.rb b/lib/gitlab/optimistic_locking.rb index 8c47c807bf9..962ff4d3985 100644 --- a/lib/gitlab/optimistic_locking.rb +++ b/lib/gitlab/optimistic_locking.rb @@ -6,7 +6,7 @@ module Gitlab loop do begin ActiveRecord::Base.transaction do - return block.call(subject) + return yield(subject) end rescue ActiveRecord::StaleObjectError retries -= 1 |