-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Update guides: Replace filter with action callback [ci skip] #51645
Update guides: Replace filter with action callback [ci skip] #51645
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates, I think it makes sense to try to remove the relation to "filter" where possible. (note that we don't need to fully eliminate it, as they are somewhat replaceable)
I had a few small suggestions below, let me know what you think. Also, please make sure to squash any additional commits down to one by the end, before we can consider merging. Thanks again.
d846dfc
to
b33597a
Compare
Agree with all those changes and I've updated the PR per your suggestions. Everything is green/passing and in a single commit! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look great, but I did miss one tweak in my previous pass 🙈 , if you don't mind fixing that one up, and I'll merge. Thanks again.
Rails 4.2 onwards replaced filter with action callback. However, the term has remained in the rails guides and this PR fixes this. Term used is "action callbacks" as this was used in the changelog: > Deprecate all *_filter callbacks in favor of *_action callbacks. [Original Change](rails@489a8f2) Types of change: - Filter(s) => Action callback(s) - Generalized the word "Action callbacks" as it is longer. - actions => "controller actions" to make "controller actions" more distinct from "action callbacks".
b33597a
to
66bc210
Compare
I'll be honest Carlos I have "action callback" snow blindness and not a reliable witness. 😆 Tweak done! Everything is green/passing and in a single commit! |
Thank you! |
Motivation / Background
Rails 4.2 onwards replaced filter with action callback. However, the term has remained in the rails guides and this PR fixes this.
Term used is "action callbacks" as this was used in the changelog:
Types of change:
Checklist
Before submitting the PR make sure the following are checked:
[Fix #issue-number]