mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
d7845d2919
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@701 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
6 lines
186 B
Ruby
6 lines
186 B
Ruby
ActiveRecord::Base.lock_mutex
|
|
ActiveRecord::Base.connection.begin_db_transaction
|
|
at_exit do
|
|
ActiveRecord::Base.connection.rollback_db_transaction
|
|
ActiveRecord::Base.unlock_mutex
|
|
end
|