1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
This commit is contained in:
Matt Jones 2008-10-08 17:00:38 -04:00 committed by Pratik Naik
parent d69b4b7bea
commit aa4a7c3530

View file

@ -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