Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

avoid @transaction_joinable not initialized warning

  • Loading branch information...
commit 2b43021499f6e00a19eba3e7e48db403a61161bb 1 parent ca92e92
@spastorino spastorino authored Yehuda Katz committed
View
2  activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
@@ -113,7 +113,7 @@ def outside_transaction?
def transaction(options = {})
options.assert_valid_keys :requires_new, :joinable
- last_transaction_joinable = @transaction_joinable
+ last_transaction_joinable = defined?(@transaction_joinable) ? @transaction_joinable : nil
if options.has_key?(:joinable)
@transaction_joinable = options[:joinable]
else
Please sign in to comment.
Something went wrong with that request. Please try again.