Skip to content

Commit

Permalink
Revert "Fix script/console --sandbox warning. [#1194 state:resolved]"
Browse files Browse the repository at this point in the history
This reverts commit bbb2fda.
  • Loading branch information
lifo committed Oct 24, 2008
1 parent 8fad8d7 commit 197e61c
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.connection.increment_open_transactions
ActiveRecord::Base.send :increment_open_transactions
ActiveRecord::Base.connection.begin_db_transaction
at_exit do
ActiveRecord::Base.connection.rollback_db_transaction
ActiveRecord::Base.connection.decrement_open_transactions
ActiveRecord::Base.send :decrement_open_transactions
end

0 comments on commit 197e61c

Please sign in to comment.