Skip to content

Commit 2d23fe4

Browse files
committed
vale
1 parent e54b4de commit 2d23fe4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/interact-data/transaction.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Ending Transactions
122122
~~~~~~~~~~~~~~~~~~~
123123

124124
Any exception raised inside the transaction method block ends the
125-
transaction and rolls back changes. In most cases, {+odm+} displays the
125+
transaction and rolls back changes. Usually, {+odm+} displays the
126126
exception, except for the ``Mongoid::Errors::Rollback`` exception. Implement
127127
this exception in your application to explicitly end the transaction
128128
without passing on an exception.
@@ -134,7 +134,7 @@ This transaction API introduces the ``after_commit`` and
134134
``after_rollback`` callbacks.
135135

136136
{+odm+} triggers the ``after_commit`` callback for an object that was
137-
created, saved, or destroyed in the following cases:
137+
created, saved, or deleted in the following cases:
138138

139139
- After the transaction is committed if the object was modified inside
140140
the transaction.
@@ -149,7 +149,7 @@ persisted, but the ``after_commit`` callback was not triggered, for
149149
example, if {+odm+} raised an exception in the ``after_save`` callback.
150150

151151
The ``after_rollback`` callback is triggered for an object that was
152-
created, saved, or destroyed inside a transaction if the transaction was
152+
created, saved, or deleted inside a transaction if the transaction was
153153
ended. {+odm+} never triggers ``after_rollback`` outside of a transaction.
154154

155155
.. _mongoid-txn-low-level:

0 commit comments

Comments
 (0)