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

Adds guard clause to prevent recovery of non-deleted records #133

Merged
merged 1 commit into from
Oct 22, 2019
Merged

Adds guard clause to prevent recovery of non-deleted records #133

merged 1 commit into from
Oct 22, 2019

Conversation

marycodes2
Copy link
Contributor

Currently all records respond to the .recover method, including
records that are not deleted. This change ensures that calling recover
on un-deleted records will no-op. We also added specs to verify this
behavior.

Co-authored-by: Valerie Woolard valerie.woolard@gmail.com

Currently all records respond to the `.recover` method, including
records that are not deleted. This change ensures that calling `recover`
on un-deleted records will no-op. We also added specs to verify this
behavior.

Co-authored-by: Valerie Woolard <valerie.woolard@gmail.com>
@mvz mvz merged commit e762b6d into ActsAsParanoid:master Oct 22, 2019
@mvz
Copy link
Contributor

mvz commented Oct 22, 2019

Thanks, @marycodes2!

@geoffharcourt geoffharcourt deleted the 132-recovery-without-destroy branch October 22, 2019 17:57
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

2 participants