1
0
Fork 0
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:
Aaron Patterson 2012-08-23 15:08:07 -07:00
parent 8d8fd13179
commit 2abe950236

View file

@ -293,9 +293,7 @@ module ActiveRecord
begin
status = yield
rescue ActiveRecord::Rollback
if defined?(@_start_transaction_state)
@_start_transaction_state[:level] = (@_start_transaction_state[:level] || 0) - 1
end
status = nil
end