diff options
author | Matt Jones <al2o3cr@gmail.com> | 2008-10-08 17:00:38 -0400 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-10-09 01:35:21 +0100 |
commit | aa4a7c35309ff95ef1165844d637f7e583ac20dd (patch) | |
tree | 7ea09e704ba9ca3e0b9f65f912f4a6f72d9d3ece /railties | |
parent | d69b4b7bea28fcab04f61afe381e06fa8e37b429 (diff) | |
download | rails-aa4a7c35309ff95ef1165844d637f7e583ac20dd.tar.gz rails-aa4a7c35309ff95ef1165844d637f7e583ac20dd.tar.bz2 rails-aa4a7c35309ff95ef1165844d637f7e583ac20dd.zip |
Fix script/console --sandbox warning. [#1194 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/console_sandbox.rb | 4 |
1 files 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 |