From 197e61c5b1df89260ee5077c7e3c94e61a51b6a2 Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Sat, 25 Oct 2008 01:43:55 +0530 Subject: [PATCH] Revert "Fix script/console --sandbox warning. [#1194 state:resolved]" This reverts commit bbb2fda11564b2d40c6c07c5a3c91cccb77fb653. --- railties/lib/console_sandbox.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/railties/lib/console_sandbox.rb b/railties/lib/console_sandbox.rb index 65a3d686191e8..5d57679c43115 100644 --- a/railties/lib/console_sandbox.rb +++ b/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