From aa4a7c35309ff95ef1165844d637f7e583ac20dd Mon Sep 17 00:00:00 2001 From: Matt Jones Date: Wed, 8 Oct 2008 17:00:38 -0400 Subject: [PATCH] Fix script/console --sandbox warning. [#1194 state:resolved] Signed-off-by: Pratik Naik --- 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 5d57679c43..65a3d68619 100644 --- a/railties/lib/console_sandbox.rb +++ b/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