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

More Subscriber and LogSubscriber doc uniformity [ci skip] #48088

Merged
merged 1 commit into from
May 5, 2023

Conversation

skipkayhil
Copy link
Member

Motivation / Background

attach_to was previously improved to allow defining methods after attaching instead of having to attach after all methods have been defined. The docs for Subscriber were updated, but LogSubscriber docs were not.

Detail

This commit copies the attach_to doc changes from Subscriber to LogSubscriber. In addition, there are other improvements to linking and applying the monospace formatting that were present in one of Subscriber or LogSubscriber and are now applied to both. The final change is updating the description of how flush_all! is used, because its usage has changed since this doc was written.

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.

attach_to was previously [improved][1] to allow defining methods after
attaching instead of having to attach after all methods have been
defined. The docs for Subscriber were [updated][2], but LogSubscriber
docs were not.

This commit copies the attach_to doc changes from Subscriber to
LogSubscriber. In addition, there are other improvements to linking and
applying the monospace formatting that were present in one of Subscriber
or LogSubscriber and are now applied to both. The final change is
updating the description of how flush_all! is used, because its usage
has [changed][3] since this doc was written.

[1]: 3408857
[2]: 25b3f73
[3]: 378464a
@rafaelfranca rafaelfranca merged commit 7d9b5b6 into rails:main May 5, 2023
8 checks passed
@skipkayhil skipkayhil deleted the hm-log-sub-docs branch May 5, 2023 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants