Skip to content

Commit 7f5e899

Browse files
authored
Merge pull request rails#45462 from yahonda/remove_trailing_spaces_activerecord_changelog
[skip ci] Remove trailing whitespaces of Active Record CHANGELOG
2 parents 1c804dc + 681ada1 commit 7f5e899

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

activerecord/CHANGELOG.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,33 +28,33 @@
2828

2929
*Adam Hess*
3030

31-
* Run transactional callbacks on the freshest instance to save a given
31+
* Run transactional callbacks on the freshest instance to save a given
3232
record within a transaction.
3333

34-
When multiple Active Record instances change the same record within a
35-
transaction, Rails runs `after_commit` or `after_rollback` callbacks for
36-
only one of them. `config.active_record.run_commit_callbacks_on_first_saved_instances_in_transaction`
37-
was added to specify how Rails chooses which instance receives the
34+
When multiple Active Record instances change the same record within a
35+
transaction, Rails runs `after_commit` or `after_rollback` callbacks for
36+
only one of them. `config.active_record.run_commit_callbacks_on_first_saved_instances_in_transaction`
37+
was added to specify how Rails chooses which instance receives the
3838
callbacks. The framework defaults were changed to use the new logic.
3939

40-
When `config.active_record.run_commit_callbacks_on_first_saved_instances_in_transaction`
41-
is `true`, transactional callbacks are run on the first instance to save,
40+
When `config.active_record.run_commit_callbacks_on_first_saved_instances_in_transaction`
41+
is `true`, transactional callbacks are run on the first instance to save,
4242
even though its instance state may be stale.
4343

44-
When it is `false`, which is the new framework default starting with version
45-
7.1, transactional callbacks are run on the instances with the freshest
44+
When it is `false`, which is the new framework default starting with version
45+
7.1, transactional callbacks are run on the instances with the freshest
4646
instance state. Those instances are chosen as follows:
4747

48-
- In general, run transactional callbacks on the last instance to save a
48+
- In general, run transactional callbacks on the last instance to save a
4949
given record within the transaction.
5050
- There are two exceptions:
51-
- If the record is created within the transaction, then updated by
52-
another instance, `after_create_commit` callbacks will be run on the
53-
second instance. This is instead of the `after_update_commit`
51+
- If the record is created within the transaction, then updated by
52+
another instance, `after_create_commit` callbacks will be run on the
53+
second instance. This is instead of the `after_update_commit`
5454
callbacks that would naively be run based on that instance’s state.
55-
- If the record is destroyed within the transaction, then
56-
`after_destroy_commit` callbacks will be fired on the last destroyed
57-
instance, even if a stale instance subsequently performed an update
55+
- If the record is destroyed within the transaction, then
56+
`after_destroy_commit` callbacks will be fired on the last destroyed
57+
instance, even if a stale instance subsequently performed an update
5858
(which will have affected 0 rows).
5959

6060
*Cameron Bothner and Mitch Vollebregt*

0 commit comments

Comments
 (0)