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

Support overriding apply_orphan_strategy #632

Merged
merged 1 commit into from
Mar 14, 2023

Conversation

kbrock
Copy link
Collaborator

@kbrock kbrock commented Mar 14, 2023

apply_orphan_strategy was removed in #617
Many gems override this method to apply a custom orphan strategy

This adds support back and adds a test around the behavior

breaking change:

If a developer calls super() from apply_orphan_strategy, it will no longer work.
Fix:
directly call the desired strategy apply_orphan_strategy_* instead

apply_orphan_strategy was removed in 1a25355
Many gems override this method to apply a custom orphan strategy

This adds support back and adds a test around the behavior

If a developer uses super in this method, that will break
You will need to directly call the desired apply_orphan_strategy_* instead
@kbrock kbrock changed the title Support apply_orphan_strategy Support overriding apply_orphan_strategy Mar 14, 2023
@kbrock kbrock merged commit 257af8a into stefankroes:master Mar 14, 2023
@kbrock kbrock deleted the apply_orphan_strategy branch March 14, 2023 20:01
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.

None yet

1 participant