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

Add predicate to check if record was soft deleted or hard deleted #136

Merged
merged 1 commit into from
Oct 22, 2019

Conversation

mvz
Copy link
Contributor

@mvz mvz commented Oct 22, 2019

Part of #108, fixing the following issue:

There is no way to know if a record was soft deleted or hard deleted in a destroy callback.

destroyed?/deleted? returns true iff an object is deleted (soft or hard).
destroyed_fully?/deleted_fully? returns true iff an object is deleted from the database (hard destroy).

…e database (hard destroy).

destroyed?/deleted? returns true iff an object is deleted (soft or hard).
destroyed_fully?/deleted_fully? returns true iff an object is deleted from the database (hard destroy).
@mvz mvz merged commit 4639621 into master Oct 22, 2019
@mvz mvz deleted the destroyed-fully-predicate branch October 22, 2019 12:22
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