public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
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
jeremy (author)
Mon Sep 11 18:17:11 -0700 2006
commit  3c0e7b1b51cb775e55a4b10a9872f74cecacd6a7
tree    8cbdf2549c5719b126490913dcaa24b0d0fa921a
parent  b0a32f85c2ee163b30530973e9d5260944a90ec1
...
1
2
 
 
3
4
5
...
1
2
3
4
5
6
7
0
@@ -1,5 +1,7 @@
0
 *SVN*
0
 
0
+* Fix script/console --sandbox for internal transactions changes. #5738 [chris@octopod.info, charles.gerungan@gmail.com]
0
+
0
 * 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
0
 documented in initializer.rb, the workaround is:
0
   
...
1
 
2
3
4
5
 
6
...
 
1
2
3
4
 
5
6
0
@@ -1,6 +1,6 @@
0
-ActiveRecord::Base.lock_mutex
0
+ActiveRecord::Base.send :increment_open_transactions
0
 ActiveRecord::Base.connection.begin_db_transaction
0
 at_exit do
0
   ActiveRecord::Base.connection.rollback_db_transaction
0
- ActiveRecord::Base.unlock_mutex
0
+ ActiveRecord::Base.send :decrement_open_transactions
0
 end

Comments

    No one has commented yet.