Skip to content

Commit

Permalink
Fix script/console --sandbox warning. [#1194 state:resolved]
Browse files Browse the repository at this point in the history
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information
al2o3cr authored and lifo committed Oct 9, 2008
1 parent d69b4b7 commit aa4a7c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 aa4a7c3

Please sign in to comment.