Skip to content

Conversation

joshuay03
Copy link
Contributor

@joshuay03 joshuay03 commented Apr 9, 2024

Motivation / Background

Just a minor doc improvement I thought could be made when reading through the implementation for this feature.

Detail

Updates a note in railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_7_2.rb.tt about enqueue_after_transaction_commit to improve clarity.

Additional information

None.

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one change. Unrelated changes 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 railties label Apr 9, 2024
@@ -28,8 +28,8 @@
# If `enqueue_after_transaction_commit` is set to `:default`, the queue adapter
# will define the behaviour.
#
# Note: Active Job backends can disable this feature. This is generally used by
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I found this slightly confusing to read. used implies that we're referring to (enabling) the feature, but we're actually referring to the action of disabling it.

# Note: Active Job backends can disable this feature. This is generally used by
# backends that use the same database than Active Record as a queue, hence they
# Note: Active Job backends can disable this feature. This is generally done by
# backends that use the same database as Active Record as a queue, hence they
Copy link
Contributor Author

@joshuay03 joshuay03 Apr 9, 2024

Choose a reason for hiding this comment

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

This also makes this note consistent with a similar section in guides/source/configuring.md that was updated in #51489.

@carlosantoniodasilva carlosantoniodasilva merged commit 0e3989a into rails:main Apr 9, 2024
@joshuay03 joshuay03 deleted the enqueue-after-transaction-commit-defaults-typos branch April 15, 2024 11:36
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.

2 participants