Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "Fix script/console --sandbox warning. [#1194 state:resolved]"

This reverts commit bbb2fda.
  • Loading branch information...
commit 197e61c5b1df89260ee5077c7e3c94e61a51b6a2 1 parent 8fad8d7
@lifo lifo authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/console_sandbox.rb
View
4 railties/lib/console_sandbox.rb
@@ -1,6 +1,6 @@
-ActiveRecord::Base.connection.increment_open_transactions
+ActiveRecord::Base.send :increment_open_transactions
ActiveRecord::Base.connection.begin_db_transaction
at_exit do
ActiveRecord::Base.connection.rollback_db_transaction
- ActiveRecord::Base.connection.decrement_open_transactions
+ ActiveRecord::Base.send :decrement_open_transactions
end
Please sign in to comment.
Something went wrong with that request. Please try again.