diff options
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] |