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

Future date on soft delete #480

Open
MatheusRich opened this issue Nov 8, 2019 · 6 comments
Open

Future date on soft delete #480

MatheusRich opened this issue Nov 8, 2019 · 6 comments

Comments

@MatheusRich
Copy link

Can I set a future date to soft delete an object?

object.deleted_at = DateTime.tomorrow

So the gem would check if deleted_at != nil and DateTime.today < deleted_at

@jarednorman
Copy link
Contributor

That's not currently how the gem works, no.

@MatheusRich
Copy link
Author

I think I could add this behavior if you think it would be good. What do you think?

@jarednorman
Copy link
Contributor

This project is kind of in limbo. I've been assisting with a small amount of maintenance, but only because I work on things that depend on paranoia. I don't personally feel like I should accept/add new features to the project as I'm really just here to keep things functioning.

That said, this seems like a good idea and am sure it would be useful to other people too.

@rikkipitt
Copy link

Hey folks, I'd be interested in this feature too. Do you think a pull request would be accepted or is the project still in limbo @jarednorman?

Cheers!

@jarednorman
Copy link
Contributor

As far as I know the project is not accepting new features. I don't have commit bit, so it's not up to me, but it has been years since the last non-maintenance PR merged and the README is pretty blunt about it:

Paranoia will continue to accept bug fixes and support new versions of Rails but isn't accepting new features.

@mathieujobin
Copy link
Collaborator

mathieujobin commented Sep 1, 2023

if enough people desire this. and someone submit a PR that includes tests, a config flag to disable it and everything working nicely. I can include in a future release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants