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

Call super in hook methods #667

Merged
merged 1 commit into from
Jul 23, 2019
Merged

Call super in hook methods #667

merged 1 commit into from
Jul 23, 2019

Conversation

azdavis
Copy link
Contributor

@azdavis azdavis commented Jul 23, 2019

This PR makes it so that we call super in various hook methods.

The default implementation of these methods (on Module) is just to no-op, so this ought to be safe to do.

This allows for other people to come along and add things to those hook methods (either before or after us), and as long as everyone supers up, all the hooks should get called as desired.

@rafaelfranca rafaelfranca merged commit 81bfaa3 into rails:master Jul 23, 2019
This was referenced Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants