Permalink
Browse files

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

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information...
1 parent cebfb5c commit bbb2fda11564b2d40c6c07c5a3c91cccb77fb653 @al2o3cr al2o3cr committed with lifo Oct 8, 2008
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.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

0 comments on commit bbb2fda

Please sign in to comment.