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

Replace destroy! with destroy_fully! on relations #222

Merged
merged 3 commits into from
Apr 25, 2021

Conversation

mvz
Copy link
Contributor

@mvz mvz commented Apr 24, 2021

On single records, destroy! was already replaced with destroy_fully! before. This change does the same for relations. This reduces surprising behavior when compared to standard ActiveRecord.

destroy! is kept for now with a deprecation message.

See #82.

@mvz mvz force-pushed the issue-82-remove-destroy-bang-on-associations branch from bdc999a to 9303ded Compare April 24, 2021 15:21
@mvz
Copy link
Contributor Author

mvz commented Apr 24, 2021

This is a breaking change!

@mvz mvz added the on hold label Apr 24, 2021
On single records, destroy! was already replaced with destroy_fully!
before. This change does the same for relations. This reduces surprising
behavior when compared to standard ActiveRecord.
@mvz mvz force-pushed the issue-82-remove-destroy-bang-on-associations branch from 9303ded to 7d37aa6 Compare April 25, 2021 12:05
@mvz mvz removed the on hold label Apr 25, 2021
@mvz mvz force-pushed the issue-82-remove-destroy-bang-on-associations branch from 7d37aa6 to 43b2f40 Compare April 25, 2021 12:08
@mvz mvz force-pushed the issue-82-remove-destroy-bang-on-associations branch from 43b2f40 to 030fb68 Compare April 25, 2021 12:09
@mvz mvz merged commit ad26c9b into master Apr 25, 2021
@mvz mvz deleted the issue-82-remove-destroy-bang-on-associations branch April 25, 2021 12:28
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