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 for internal transactions changes. Closes #5738.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5088 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper 2006-09-12 01:17:11 +00:00
parent b0a32f85c2
commit 3c0e7b1b51
2 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,7 @@
*SVN* *SVN*
* Fix script/console --sandbox for internal transactions changes. #5738 [chris@octopod.info, charles.gerungan@gmail.com]
* Remove the uncanny default of adding all app/models/*/ directories to the load path. This change will break application which expect the current behavior. As * Remove the uncanny default of adding all app/models/*/ directories to the load path. This change will break application which expect the current behavior. As
documented in initializer.rb, the workaround is: documented in initializer.rb, the workaround is:

View file

@ -1,6 +1,6 @@
ActiveRecord::Base.lock_mutex ActiveRecord::Base.send :increment_open_transactions
ActiveRecord::Base.connection.begin_db_transaction ActiveRecord::Base.connection.begin_db_transaction
at_exit do at_exit do
ActiveRecord::Base.connection.rollback_db_transaction ActiveRecord::Base.connection.rollback_db_transaction
ActiveRecord::Base.unlock_mutex ActiveRecord::Base.send :decrement_open_transactions
end end