Skip to content

Commit

Permalink
Fix script/console --sandbox warning. [rails#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 cebfb5c commit bbb2fda
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 bbb2fda

Please sign in to comment.