aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/transactions.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-02-23 23:51:34 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-02-23 23:51:34 +0000
commit4eab3758056132a73c614a9a6c090cb3e5f9e3e3 (patch)
tree1971a9556dab676ce9e905bbd5e3f599f1d9e9f8 /activerecord/lib/active_record/transactions.rb
parentc4e519621065879c296cfdbb25b196021df1fd4d (diff)
downloadrails-4eab3758056132a73c614a9a6c090cb3e5f9e3e3.tar.gz
rails-4eab3758056132a73c614a9a6c090cb3e5f9e3e3.tar.bz2
rails-4eab3758056132a73c614a9a6c090cb3e5f9e3e3.zip
Finished polishing API docs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@773 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/transactions.rb')
-rw-r--r--activerecord/lib/active_record/transactions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/transactions.rb b/activerecord/lib/active_record/transactions.rb
index 937955dd72..d6b99008ee 100644
--- a/activerecord/lib/active_record/transactions.rb
+++ b/activerecord/lib/active_record/transactions.rb
@@ -96,14 +96,14 @@ module ActiveRecord
end
end
- def lock_mutex
+ def lock_mutex#:nodoc:
Thread.current['open_transactions'] ||= 0
TRANSACTION_MUTEX.lock if Thread.current['open_transactions'] == 0
Thread.current['start_db_transaction'] = (Thread.current['open_transactions'] == 0)
Thread.current['open_transactions'] += 1
end
- def unlock_mutex
+ def unlock_mutex#:nodoc:
Thread.current['open_transactions'] -= 1
TRANSACTION_MUTEX.unlock if Thread.current['open_transactions'] == 0
end