diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-04-05 03:52:58 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-04-05 03:52:58 +0000 |
commit | aa4af60aad5772458e8ba3bd08505781aeeb53a2 (patch) | |
tree | 22eadb1dc551f95e3150f803dc654eaa125544d9 /activerecord/README | |
parent | 08318b8bcd32bae741e672899a33c6a7d52664c8 (diff) | |
download | rails-aa4af60aad5772458e8ba3bd08505781aeeb53a2.tar.gz rails-aa4af60aad5772458e8ba3bd08505781aeeb53a2.tar.bz2 rails-aa4af60aad5772458e8ba3bd08505781aeeb53a2.zip |
Improve documentation.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/README')
-rwxr-xr-x | activerecord/README | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/activerecord/README b/activerecord/README index 442530184c..7204b44ec4 100755 --- a/activerecord/README +++ b/activerecord/README @@ -102,21 +102,14 @@ A short rundown of the major features: {Learn more}[link:classes/ActiveRecord/Base.html] -* Transaction support on both a database and object level. The latter is implemented - by using Transaction::Simple[http://railsmanual.com/module/Transaction::Simple] +* Transactions - # Just database transaction + # Database transaction Account.transaction do david.withdrawal(100) mary.deposit(100) end - # Database and object transaction - Account.transaction(david, mary) do - david.withdrawal(100) - mary.deposit(100) - end - {Learn more}[link:classes/ActiveRecord/Transactions/ClassMethods.html] |