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

Stop overriding callback methods if they're present #56

Merged
merged 4 commits into from
Dec 8, 2018

Conversation

skycocker
Copy link
Contributor

This PR fixes the case where a callback method (like on_friendship_created) is being overridden by an empty method from the template (in removed lines 91-93), if such callback method is defined by e.g. a concern, which is included to the class which uses has_friendship as well.

@coveralls
Copy link

coveralls commented May 23, 2018

Coverage Status

Coverage decreased (-0.4%) to 99.4% when pulling 06767a1 on skycocker:master into aa21675 on sungwoncho:master.

@chevinbrown
Copy link
Contributor

@skycocker 👋 I like this change!

Would you mind adding a bit of test coverage for the new method?

If you can get that added, I'll be happy to merge & release. ❤️

@chevinbrown
Copy link
Contributor

Will this solve the issue here?
#59

@skycocker
Copy link
Contributor Author

@chevinbrown it will, but it has to be done with caution and after reading the readme notes. I'll provide some tests once I find some spare time :)

@chevinbrown
Copy link
Contributor

@skycocker what caution do you mean? 😸

I can merge this and add a followup PR to add test coverage if that suits you?

@chevinbrown chevinbrown merged commit 3c9798c into has-friendship:master Dec 8, 2018
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.

3 participants