mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
ivar will always be defined, so stop checking
This commit is contained in:
parent
8d8fd13179
commit
2abe950236
1 changed files with 1 additions and 3 deletions
|
@ -293,9 +293,7 @@ module ActiveRecord
|
||||||
begin
|
begin
|
||||||
status = yield
|
status = yield
|
||||||
rescue ActiveRecord::Rollback
|
rescue ActiveRecord::Rollback
|
||||||
if defined?(@_start_transaction_state)
|
|
||||||
@_start_transaction_state[:level] = (@_start_transaction_state[:level] || 0) - 1
|
@_start_transaction_state[:level] = (@_start_transaction_state[:level] || 0) - 1
|
||||||
end
|
|
||||||
status = nil
|
status = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue