Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information...
commit aa4a7c35309ff95ef1165844d637f7e583ac20dd 1 parent d69b4b7
Matt Jones al2o3cr authored lifo committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/console_sandbox.rb
4 railties/lib/console_sandbox.rb
View
@@ -1,6 +1,6 @@
-ActiveRecord::Base.send :increment_open_transactions
+ActiveRecord::Base.connection.increment_open_transactions
ActiveRecord::Base.connection.begin_db_transaction
at_exit do
ActiveRecord::Base.connection.rollback_db_transaction
- ActiveRecord::Base.send :decrement_open_transactions
+ ActiveRecord::Base.connection.decrement_open_transactions
end
Please sign in to comment.
Something went wrong with that request. Please try again.