Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify transaction callbacks section [ci-skip] #49885

Merged
merged 1 commit into from Nov 1, 2023

Conversation

p8
Copy link
Member

@p8 p8 commented Nov 1, 2023

Rename "Dealing With Consistency" heading to "after_commit and
after_rollback, to be more inline with other headings.

The Context Matters heading has been renamed to Aliases for after_commit, as this section is about aliases and Context Matters is a bit ambiguous.

The warnings for after_commit and after_rollback better fit with the section about these callback methods.

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one change. Changes that are unrelated should be opened in separate PRs.
  • Commit message has a detailed description of what changed and why. If this PR fixes a related issue include it in the commit message. Ex: [Fix #issue-number]
  • Tests are added or updated if you fix a bug or add a feature.
  • CHANGELOG files are updated for the changed libraries if there is a behavior change or additional feature. Minor bug fixes and documentation changes should not be included.

@rails-bot rails-bot bot added the docs label Nov 1, 2023
Rename "Dealing With Consistency" heading to "`after_commit` and
`after_rollback`. To be more inline with other headings.

The "Context Matters" heading has been renamed to "Aliases for
`after_commit`", as this section is about aliases and `Context Matters` is
a bit ambiguous.

The warnings for `after_commit` and `after_rollback` better fit with the
section about these callback methods.
@p8 p8 force-pushed the guides/transaction-callbacks branch from ed1fc26 to 5b6f422 Compare November 1, 2023 13:38
Copy link
Contributor

@adrianna-chang-shopify adrianna-chang-shopify left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! ❤️

@p8
Copy link
Member Author

p8 commented Nov 1, 2023

Thanks @adrianna-chang-shopify 🙂

@p8 p8 merged commit 8e73e62 into rails:main Nov 1, 2023
3 checks passed
@p8 p8 deleted the guides/transaction-callbacks branch November 1, 2023 16:09
@zzak
Copy link
Member

zzak commented Nov 3, 2023

I guess I was being a bit clever when coming up with those headings, but this is an improvement. Thanks!

p8 added a commit to p8/rails that referenced this pull request Nov 4, 2023
Clarify transaction callbacks section [ci-skip]
p8 added a commit that referenced this pull request Nov 4, 2023
Clarify transaction callbacks section [ci-skip]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants