Skip to content
Browse files

ivar will always be defined, so stop checking

  • Loading branch information...
1 parent 8d8fd13 commit 2abe950236d9e15510e83372c5dc0d68210580da @tenderlove tenderlove committed Aug 23, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 activerecord/lib/active_record/transactions.rb
View
4 activerecord/lib/active_record/transactions.rb
@@ -293,9 +293,7 @@ def with_transaction_returning_status
begin
status = yield
rescue ActiveRecord::Rollback
- if defined?(@_start_transaction_state)
- @_start_transaction_state[:level] = (@_start_transaction_state[:level] || 0) - 1
- end
+ @_start_transaction_state[:level] = (@_start_transaction_state[:level] || 0) - 1
status = nil
end

0 comments on commit 2abe950

Please sign in to comment.
Something went wrong with that request. Please try again.