ManageIQ/activerecord-sqlserver-adapter — comment on commit 89741f62be0677626e330276d4fcae34e25f0c18
File: lib/active_record/connection_adapters/sqlserver/database_statements.rb line 49
By metaskills:

Something like this. The super stuff may be superfluous, tho.

```ruby
def transaction(options = {})
if retry_deadlock_victim?
block_given? ? transaction_with_retry_deadlock_victim(options) { yield } : transaction_with_retry_deadlock_victim(options)
else
block_given? ? super(options) { yield } : super(options)
end
end
```